From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Re: [Babel] Macro for begin_src? Date: Sat, 17 Apr 2010 09:28:51 -0500 Message-ID: References: <87fx2ug61h.fsf@stats.ox.ac.uk> <874ojag2bo.fsf@stats.ox.ac.uk> <87wrw6z6hc.fsf@gmail.com> <4BC9C082.6040709@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0372086600==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O390z-0007Zo-2p for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 10:28:57 -0400 Received: from [140.186.70.92] (port=38198 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O390w-0007Zg-LH for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 10:28:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O390u-0003vp-QV for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 10:28:54 -0400 Received: from mail-pz0-f198.google.com ([209.85.222.198]:37826) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O390u-0003vh-Lt for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 10:28:52 -0400 Received: by pzk36 with SMTP id 36so2904895pzk.24 for ; Sat, 17 Apr 2010 07:28:51 -0700 (PDT) In-Reply-To: <4BC9C082.6040709@ccbr.umn.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Iverson Cc: Dan Davison , emacs-orgmode@gnu.org, =?UTF-8?B?xaB0xJtww6FuIE7Em21lYw==?= --===============0372086600== Content-Type: multipart/alternative; boundary=00504502b4e9f4d22004846f8b1c --00504502b4e9f4d22004846f8b1c Content-Type: text/plain; charset=ISO-8859-1 On Sat, Apr 17, 2010 at 9:06 AM, Erik Iverson wrote: > > I'm guessing what you really want there is >> >> (set (make-local-variable 'yas/trigger-key) [tab]) >> >> instead of >> >> > (make-variable-buffer-local 'yas/trigger-key) >> > (setq yas/trigger-key [tab]) >> >> >> Hmmm. >> >> Do you guys un-map your TAB key so that it doesn't run org-cycle? >> My TAB key will correctly trigger yas/insert-snippet in emacs-lisp mode. >> However, in org-mode my TAB key is still mapped to org-cycle, even if I >> add the org-mode hook using the code above. >> >> Thanks, >> --Nate >> >> > The order you do it might matter? > I found the problem -- it's detailed right here, and it's tailored to fix compatibility with org-mode: http://yasnippet.googlecode.com/svn/trunk/doc/faq.html --Nate --00504502b4e9f4d22004846f8b1c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sat, Apr 17, 2010 at 9:06 AM, Erik Iv= erson <eriki@ccb= r.umn.edu> wrote:

=A0 =A0I'm guessing what you really want there is

=A0 =A0(set (make-local-variable 'yas/trigger-key) [tab])

=A0 =A0instead of

=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 (setq yas/trigger-key [tab])


Hmmm.

Do you guys un-map your TAB key so that it doesn't run org-cycle?
My TAB key will correctly trigger yas/insert-snippet in emacs-lisp mode. However, in org-mode my TAB key is still mapped to org-cycle, even if I add= the org-mode hook using the code above.

Thanks,
--Nate


The order you do it might matter?

I found the problem -- it's detailed right here,= and it's tailored to fix compatibility with org-mode:
http://yasnippet.goog= lecode.com/svn/trunk/doc/faq.html

--Nate
--00504502b4e9f4d22004846f8b1c-- --===============0372086600== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0372086600==--