* [PATCH] org.texi: yasnippet nested snippet
@ 2011-08-26 12:49 Sylvain Rousseau
2011-10-08 16:33 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Sylvain Rousseau @ 2011-08-26 12:49 UTC (permalink / raw
To: emacs-orgmode
[-- 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 --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] org.texi: yasnippet nested snippet
2011-08-26 12:49 [PATCH] org.texi: yasnippet nested snippet Sylvain Rousseau
@ 2011-10-08 16:33 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2011-10-08 16:33 UTC (permalink / raw
To: Sylvain Rousseau; +Cc: emacs-orgmode
Accepted, thanks.
- Carsten
On 26.8.2011, at 14:49, Sylvain Rousseau wrote:
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-08 16:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-26 12:49 [PATCH] org.texi: yasnippet nested snippet Sylvain Rousseau
2011-10-08 16:33 ` Carsten Dominik
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.