unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Commands with more than one keybinding in menus
Date: Tue, 13 Aug 2013 16:52:45 +0200	[thread overview]
Message-ID: <87siydlk1u.fsf@gmail.com> (raw)
In-Reply-To: 87a9kl7ld0.fsf@web.de

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> Hi List, 
>>
>> if a command that should appear in the menu for a mode has more than one
>> keybinding - how do I specify which binding shows up in the menu?   
>>
>> As an example, say command `demote' of 'my-mode' is bind to 'C-c C-c >'
>> and 'C-M-<right>', and I want the latter binding to appear in the menu
>> entry of 'my-mode'. Is that a matter of definition order - the binding
>> last defined in the mode's library is shown - or is there a way to
>> specify the displayed binding in the menu-map definition?
>
> Dunno about the order, but presumably you shouldn't rely on any rule.
>
> You can specify a key binding when defining the menu explicitly - see
>
>   (info "(elisp) Extended Menu Items")
>

thats what I needed, must have overlooked the 

,----------------------------------------------------------------------
| `:key-sequence KEY-SEQUENCE'
|      This property specifies which key sequence is likely to be bound
|      to the same command invoked by this menu item. 
`----------------------------------------------------------------------

property when searching the manual. 

Thanks.

-- 
cheers,
Thorsten




  reply	other threads:[~2013-08-13 14:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-13  9:33 Commands with more than one keybinding in menus Thorsten Jolitz
2013-08-13 13:48 ` Michael Heerdegen
2013-08-13 14:52   ` Thorsten Jolitz [this message]
     [not found] <mailman.3104.1376386441.12400.help-gnu-emacs@gnu.org>
2013-08-13 14:57 ` Stefan Monnier
2013-08-13 21:13   ` Thorsten Jolitz
2013-08-14 12:36     ` Michael Heerdegen
2013-08-14 13:25       ` Thorsten Jolitz
     [not found]       ` <mailman.3200.1376486779.12400.help-gnu-emacs@gnu.org>
2013-08-14 14:12         ` Stefan Monnier
2013-08-14 15:40           ` Thorsten Jolitz
     [not found]           ` <mailman.3205.1376494881.12400.help-gnu-emacs@gnu.org>
2013-08-14 16:23             ` Stefan Monnier
2013-08-14 16:55               ` Thorsten Jolitz
     [not found]   ` <mailman.3163.1376428457.12400.help-gnu-emacs@gnu.org>
2013-08-14 14:09     ` Stefan Monnier

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87siydlk1u.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=help-gnu-emacs@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.
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).