From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sylvain Rousseau Subject: [PATCH] org.texi: yasnippet nested snippet Date: Fri, 26 Aug 2011 14:49:31 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf300fb2c3034fa204ab67fadb Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwvqn-0005CR-Tq for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 08:49:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qwvqm-0006jC-Ta for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 08:49:33 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:58786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwvqm-0006j5-PC for emacs-orgmode@gnu.org; Fri, 26 Aug 2011 08:49:32 -0400 Received: by ywm13 with SMTP id 13so3017364ywm.0 for ; Fri, 26 Aug 2011 05:49:31 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --20cf300fb2c3034fa204ab67fadb Content-Type: text/plain; charset=ISO-8859-1 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. --20cf300fb2c3034fa204ab67fadb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

The proposed workaround doesn't support nested snippet!
<= br>(setq yas/triggers-in-field t) to enable it.

Here is a patch to f= ix 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, t= ell Org mode what to do with the new function:
=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 (make-variable-buffer-local 'yas/trigger-key)
=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (setq yas/trigger-key [tab])
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (add-to-list 'org-tab-first-= hook 'yas/org-very-safe-expand)
-=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 (define-key yas/keymap [tab] 'yas/next-field)))
+=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 (define-key yas/keymap [tab] 'yas/next-fiel= d-or-maybe-expand)))
=A0@end lisp
=A0
=A0@item @file{windmove.el} by Hovav Shacham

=
Sylvain.
--20cf300fb2c3034fa204ab67fadb--