From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: [babel] [PATCH] enhanced org-babel-goto-named-src-block Date: Thu, 01 Mar 2012 09:19:50 +0100 Message-ID: <87y5rkhgwp.fsf@med.uni-goettingen.de> References: <87hayid224.fsf@med.uni-goettingen.de> <87r4xerp9a.fsf@med.uni-goettingen.de> <80booh71sc.fsf@somewhere.org> <87399ti8gg.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S31Fn-0003Gw-Jw for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 03:20:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S31FN-0006lz-TV for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 03:20:47 -0500 Received: from plane.gmane.org ([80.91.229.3]:53924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S31FN-0006lR-CM for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 03:20:21 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S31FL-0003tr-Ef for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 09:20:19 +0100 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Mar 2012 09:20:19 +0100 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Mar 2012 09:20:19 +0100 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 tsd@tsdye.com (Thomas S. Dye) writes: > Andreas Leha writes: > >> "Sebastien Vauban" >> writes: >> >>> Hi Jonathan, >>> >>> Jonathan Leech-Pepin wrote: >>>> 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 >>> >>> Something along these lines should work: >>> >>> #+begin_src emacs-lisp >>> ;; remove the binding of `C-c &' >>> (add-hook 'yas/minor-mode-hook >>> (lambda () >>> (define-key global-map (kbd "C-c & C-s") nil) >>> (define-key global-map (kbd "C-c & C-n") nil) >>> (define-key global-map (kbd "C-c & C-v") nil) >>> (define-key global-map (kbd "C-c & C-f") nil) >>> )) >>> #+end_src >>> >>> ... but it doesn't. And I don't understand yet why. Maybe the hook in which >>> this is placed is not the right one? If anyone sees an obvious reason for >>> it... >>> >>> Best regards, >>> Seb >> >> Thanks for looking into this. I am not using yas myself - so I did not >> notice. >> >> @Tom: I think, if C-c & is documented, this issue (together with a >> fix/work-around, as soon as found) should be mentioned there as well. >> There will be more org- and yas-users. >> >> Regards, >> Andreas >> >> >> > Aloha Andreas, > > IMO the manual should stick to describing Org Mode, and not get too > much into working around conflicts with other modes. Valid point. > At the same time, > I tend to agree with your guess that there are lots of Org Mode users > who also use yas. > > I wonder what others think about adding a babel key binding for > org-mark-ring-goto? C-c C-v something. This could be documented in the > babel key bindings, along with a reference there to the standard Org > Mode binding, C-c &. > > Assuming Seb's attempt finds a solution, then perhaps that could go > into the FAQ under something like "Why doesn't C-c & work for me?" Good idea. That should be "visible enough" to the ones hit by this. > > All the best, > Tom Regards, Andreas