help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Commands with more than one keybinding in menus


From: Thorsten Jolitz
Subject: Re: Commands with more than one keybinding in menus
Date: Wed, 14 Aug 2013 17:40:50 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> (defmacro outshine-define-key-with-fallback
>>   (keymap key def condition &optional mode)
>
> You don't actually bind KEY to DEF but to another command that (may) end
> up running DEF, so it's no wonder Emacs doesn't tell you that KEY is the
> binding of DEF.

Your syntax corrections from the other post did fix some cases, and the
macro seems to be the root cause of the remaining cases. 

The macro was offered by a user of outshine, I only fiddled around with
it until it worked without errors. It serves its purpose, because
without it a minor-mode, unconditionally defining 'M-[S-]<arrow-key>'
bindings, runs a high risk of breaking major-mode or user settings - I
would not want to do without it.

Since all the menu entries work anyway and can thus be used with the
mouse or keyboard, I rather live with the suboptimal situation that some
entries don't show a keybinding and others only show the second best
keybinding - until a solution is found some day. 

When using `outshine.el', the new "Outshine" menu is still better than
the old "Outline" menu that showed all those not so popular specialised
outline commands instead of the more powerfull outline-magic (Org-mode)
versions.

Thanks for the help.

-- 
cheers,
Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]