From: tsd@tsdye.com (Thomas S. Dye)
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] [PATCH] enhanced org-babel-goto-named-src-block
Date: Wed, 29 Feb 2012 13:52:17 -1000 [thread overview]
Message-ID: <m1ty29w632.fsf@tsdye.com> (raw)
In-Reply-To: <87399ti8gg.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Wed, 29 Feb 2012 23:24:47 +0100")
Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> "Sebastien Vauban"
> <wxhgmqzgwmuf@spammotel.com> 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. 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?"
All the best,
Tom
--
Thomas S. Dye
http://www.tsdye.com
next prev parent reply other threads:[~2012-02-29 23:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-22 20:51 [babel] [PATCH] enhanced org-babel-goto-named-src-block Andreas Leha
2012-02-25 16:36 ` Eric Schulte
2012-02-29 0:39 ` Thomas S. Dye
2012-02-29 8:57 ` Andreas Leha
2012-02-29 16:09 ` Thomas S. Dye
2012-02-29 19:48 ` Jonathan Leech-Pepin
2012-02-29 21:44 ` Sebastien Vauban
2012-02-29 22:24 ` Andreas Leha
2012-02-29 23:52 ` Thomas S. Dye [this message]
2012-03-01 8:19 ` Andreas Leha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1ty29w632.fsf@tsdye.com \
--to=tsd@tsdye.com \
--cc=andreas.leha@med.uni-goettingen.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).