From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Leech-Pepin Subject: Re: [babel] [PATCH] enhanced org-babel-goto-named-src-block Date: Wed, 29 Feb 2012 14:48:42 -0500 Message-ID: References: <87hayid224.fsf@med.uni-goettingen.de> <87r4xerp9a.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307d07427e56b904ba1fa131 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2pWN-00014f-6R for emacs-orgmode@gnu.org; Wed, 29 Feb 2012 14:49:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2pW2-0000q9-En for emacs-orgmode@gnu.org; Wed, 29 Feb 2012 14:49:06 -0500 Received: from mail-vw0-f41.google.com ([209.85.212.41]:59788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2pW2-0000oi-4O for emacs-orgmode@gnu.org; Wed, 29 Feb 2012 14:48:46 -0500 Received: by vbbey12 with SMTP id ey12so3265133vbb.0 for ; Wed, 29 Feb 2012 11:48:43 -0800 (PST) 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: "Thomas S. Dye" Cc: Andreas Leha , emacs-orgmode@gnu.org --20cf307d07427e56b904ba1fa131 Content-Type: text/plain; charset=UTF-8 Hello Thomas, I ran into exactly that question this morning and managed to figure it out. If I use "emacs -q" then C-c & works as expected and is mapped to (org-mark-ring-goto & optional N). However when trying C-c & C-h I find out that C-c & is a prefix for a few yasnippet commands: ,---- | `yas/minor-mode' Minor Mode Bindings Starting With C-c &: | key binding | --- ------- | | C-c & C-f yas/find-snippets | C-c & C-n yas/new-snippet | C-c & C-s yas/insert-snippet | C-c & C-v yas/visit-snippet-file `---- Seems this is another place where yas and org don't get along well together On Wed, Feb 29, 2012 at 11:09, Thomas S. Dye wrote: > Andreas Leha writes: > >> tsd@tsdye.com (Thomas S. Dye) writes: >> >>> Andreas Leha writes: >>> >>>> Hi all, >>>> >>>> attached is a patch that enhances org-babel-goto-named-src-block (bound >>>> to C-c C-v g by default). Included are two enhancements: >>>> >>>> 1. the point is pushed to the org-mark-ring, such that returning with >>>> C-c & becomes possible >>>> 2. the target src block is guessed from >>>> a) noweb-reference >>>> b) #+call: >>>> c) #+results: >>>> d) symbol-at-point >>>> if one of these is found (in that order) >>>> >>>> - Andreas >>>> >>>> >>> Hi all, >>> >>> Should C-c & be included in Key Bindings and Useful Functions, Section >>> 14.11 of the Org Mode manual? Or, is this a general Emacs thing >>> documented elsewhere? >>> >>> Tom >> >> In my opinion, it would be nice to have this listed in the Org Mode >> manual. >> >> - Andreas >> >> >> > Hi Andreas, > > Is C-c & correct here? On my system I can jump back following the > instructions: > Position saved to mark ring, go back with M-x org-mark-ring-goto. > > But C-c & waits for more input. > > Tom > -- > Thomas S. Dye > http://www.tsdye.com > --20cf307d07427e56b904ba1fa131 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Thomas,

I ran into exactly that question th= is morning and managed to figure it out.

If I use "emacs -q" then C-c & works as= expected and is mapped to (org-mark-ring-goto & optional N). =C2=A0How= ever when trying C-c & C-h I find out that C-c & is a prefix for a = few yasnippet commands:

,----
| `yas/minor-m= ode' Minor Mode Bindings Starting With C-c &:
| key binding
| --- -------
|
| C-c & = C-f yas/find-snippets
=
| C-c & C-n yas/new-s= nippet
| C-c & C-s yas/inser= t-snippet
| C-c & C-v yas/visit-snippet-file
`----

Seems this is another pla= ce where yas and org don't get along well together

On Wed, Feb 29, 2012 at 11:09, Thomas S. Dye <tsd@tsdye.com> wrote:
> Andreas Leha= <andreas.leha@med= .uni-goettingen.de> writes:
>
>> tsd@tsdye.com (Thomas= S. Dye) writes:
>>
>>> Andreas Leha <andreas.leha@med.uni-goettingen.de= > writes:
>>>
>>>> Hi all,
>>>>
>>>= ;> attached is a patch that enhances org-babel-goto-named-src-block (bou= nd
>>>> to C-c C-v g by default). =C2=A0Included are two enh= ancements:
>>>>
>>>> =C2=A01. the point is pushed to the or= g-mark-ring, such that returning with
>>>> =C2=A0 =C2=A0 C-c= & becomes possible
>>>> =C2=A02. the target src block i= s guessed from
>>>> =C2=A0 =C2=A0 =C2=A0a) noweb-reference
>>>>= =C2=A0 =C2=A0 =C2=A0b) #+call:
>>>> =C2=A0 =C2=A0 =C2=A0c) = #+results:
>>>> =C2=A0 =C2=A0 =C2=A0d) symbol-at-point
&g= t;>>> =C2=A0 =C2=A0 if one of these is found (in that order)
>>>>
>>>> - Andreas
>>>>
>&= gt;>>
>>> Hi all,
>>>
>>> Should = C-c & be included in Key Bindings and Useful Functions, Section
>>> 14.11 of the Org Mode manual? =C2=A0Or, is this a general Emac= s thing
>>> documented elsewhere?
>>>
>>&g= t; Tom
>>
>> In my opinion, it would be nice to have this= listed in the Org Mode
>> manual.
>>
>> - Andreas
>>
>><= br>>>
> Hi Andreas,
>
> Is C-c & correct here? = =C2=A0On my system I can jump back following the
> instructions:
&= gt; Position saved to mark ring, go back with M-x org-mark-ring-goto.
>
> But C-c & waits for more input.
>
> Tom
>= ; --
> Thomas S. Dye
> http://= www.tsdye.com
>

--20cf307d07427e56b904ba1fa131--