emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org
Subject: Bug: Abbrev-mode expanded during export [7.7 (release_7.7.330.g774f)]
Date: Wed, 28 Sep 2011 19:08:39 -0400	[thread overview]
Message-ID: <87ipoc6z9k.fsf@norang.ca> (raw)

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	other threads:[~2011-09-28 23:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ipoc6z9k.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).