Hi Eric,

I've recently switched from yasnippets to abbrev-mode + skeletons and
run into an unexpected situation during export.

I have the following level 2 task:

,----
| *** NEXT Report bug about abbrev expansions during export
| [2011-09-28 Wed 07:55]
| 
| Define src edit mode for plantuml
`----

I also have an abbrev-mode and skeleton expansion for 'plantuml' defined
as follows:

,----
| (define-skeleton skel-org-block-plantuml
|   "Insert a org plantuml block, querying for filename."
|   "File (no extension): "
|   "#+begin_src plantuml :file " str ".png\n"
|   _ - \n
|   "#+end_src\n")
| 
| (define-abbrev org-mode-abbrev-table "plantuml" ""
|   'skel-org-block-plantuml)
`----

When I select this subtree for export with C-c @ and then C-c C-e b
I get prompted for the filename for expansion of 'plantuml'.

For some reason the combination of 'src' and 'plantuml' triggers this
abbrev mode expansion during export but I don't understand why.

This line is actually part of a commit for my 'Update org-mode doc' task
with a git short-log entry of

,----
| d9bba26 Define src edit mode for plantuml
`----

I don't think export should be trying to expand the plantuml in this
subtree.

Do you have any idea what is going on here?

Regards,
Bernt

Emacs  : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-12-11 on raven, modified by Debian
Package: Org-mode version 7.7 (release_7.7.330.g774f)

Reply via email to