From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] org.texi: yasnippet nested snippet Date: Sat, 8 Oct 2011 18:33:02 +0200 Message-ID: <26B1B12E-455F-4CC0-87BB-72EAE03FB300@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCZpk-0002Ry-3k for emacs-orgmode@gnu.org; Sat, 08 Oct 2011 12:33:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCZpj-0007BZ-9N for emacs-orgmode@gnu.org; Sat, 08 Oct 2011 12:33:08 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:54637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCZpj-0007BR-2z for emacs-orgmode@gnu.org; Sat, 08 Oct 2011 12:33:07 -0400 Received: by wwp14 with SMTP id 14so6175334wwp.30 for ; Sat, 08 Oct 2011 09:33:06 -0700 (PDT) In-Reply-To: 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: Sylvain Rousseau Cc: emacs-orgmode@gnu.org Accepted, thanks. - Carsten On 26.8.2011, at 14:49, Sylvain Rousseau wrote: > Hi, >=20 > The proposed workaround doesn't support nested snippet! >=20 > (setq yas/triggers-in-field t) to enable it. >=20 > Here is a patch to fix this: >=20 > 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 > =20 > @item @file{windmove.el} by Hovav Shacham >=20 >=20 > Sylvain.