From: Sylvain Rousseau <thisirs@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] org.texi: yasnippet nested snippet
Date: Fri, 26 Aug 2011 14:49:31 +0200 [thread overview]
Message-ID: <CAJ8n8331owExqpDW-+5KjOHcWX6uvwMNvdejzChgrMwh=QzFGg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 713 bytes --]
Hi,
The proposed workaround doesn't support nested snippet!
(setq yas/triggers-in-field t) to enable it.
Here is a patch to fix this:
diff --git a/doc/org.texi b/doc/org.texi
index 002ada1..2295fd0 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -14097,7 +14097,7 @@ Then, tell Org mode what to do with the new
function:
(make-variable-buffer-local 'yas/trigger-key)
(setq yas/trigger-key [tab])
(add-to-list 'org-tab-first-hook 'yas/org-very-safe-expand)
- (define-key yas/keymap [tab] 'yas/next-field)))
+ (define-key yas/keymap [tab]
'yas/next-field-or-maybe-expand)))
@end lisp
@item @file{windmove.el} by Hovav Shacham
Sylvain.
[-- Attachment #2: Type: text/html, Size: 818 bytes --]
next reply other threads:[~2011-08-26 12:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-26 12:49 Sylvain Rousseau [this message]
2011-10-08 16:33 ` [PATCH] org.texi: yasnippet nested snippet Carsten Dominik
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ8n8331owExqpDW-+5KjOHcWX6uvwMNvdejzChgrMwh=QzFGg@mail.gmail.com' \
--to=thisirs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.