emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mark Edgington <edgimar@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: bad interaction between yasnippet and org-mode
Date: Tue, 9 Jun 2015 08:44:47 -0400	[thread overview]
Message-ID: <CAMsBe8qUSAHb4NypyOyspinVpm=rRV6g5zQURzBd5qv=-crasA@mail.gmail.com> (raw)

I have a yas snippet that looks like the following:

*  $1                   :sometag:
$0

When I try to expand this snippet (on an empty line) in an org-mode
buffer, there seems to be a bad interaction happening between org-mode
and yasnippet, such that when entering in text at the $1 location,
typing something like "abc" results in "a b c " being inserted (spaces
get interspersed).

This behavior does not happen if there is no tag at the end of the
headline, or if the $1 is replaced with $0 (so yas mode is exited
after expanding the snippet).

I'm using yas 0.8.0beta (latest git), and Org-mode 8.3beta
(release_8.3beta-1206-g2f0bcc)

Is there a way to work around or fix this?

                 reply	other threads:[~2015-06-09 12:45 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='CAMsBe8qUSAHb4NypyOyspinVpm=rRV6g5zQURzBd5qv=-crasA@mail.gmail.com' \
    --to=edgimar@gmail.com \
    --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).