emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Abbrev-mode expanded during export [7.7 (release_7.7.330.g774f)]
@ 2011-09-28 23:08 Bernt Hansen
  0 siblings, 0 replies; only message in thread
From: Bernt Hansen @ 2011-09-28 23:08 UTC (permalink / raw)
  To: emacs-orgmode

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-28 23:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-28 23:08 Bug: Abbrev-mode expanded during export [7.7 (release_7.7.330.g774f)] Bernt Hansen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).