unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* be able to specify the binding hint shown in menu items
@ 2007-05-22 14:58 Drew Adams
  2007-05-22 15:20 ` Stefan Monnier
  2007-05-22 15:46 ` Drew Adams
  0 siblings, 2 replies; 5+ messages in thread
From: Drew Adams @ 2007-05-22 14:58 UTC (permalink / raw)
  To: Emacs-Devel

In some cases, I bind a menu-bar menu item to a command that is not, itself,
bound to a keyboard key sequence. However, I would like a particular key
sequence to appear in the menu next to the menu item.

I don't think there is currently a way to specify (i.e. hard-code) a
key-binding hint for a menu item. You can add text "     (C-x a)" to the
menu item itself, but there is then no way to right-align the binding hint.

Could this mini-feature be added after the release? The use case is having a
slightly different command bound to the menu item than what is to be
documented as the keyboard binding.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: be able to specify the binding hint shown in menu items
  2007-05-22 14:58 be able to specify the binding hint shown in menu items Drew Adams
@ 2007-05-22 15:20 ` Stefan Monnier
  2007-05-22 16:16   ` Drew Adams
  2007-05-22 15:46 ` Drew Adams
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2007-05-22 15:20 UTC (permalink / raw)
  To: Drew Adams; +Cc: Emacs-Devel

> I don't think there is currently a way to specify (i.e. hard-code) a
> key-binding hint for a menu item. You can add text "     (C-x a)" to the
> menu item itself, but there is then no way to right-align the binding hint.

What's wrong with :keys ?


        Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: be able to specify the binding hint shown in menu items
  2007-05-22 14:58 be able to specify the binding hint shown in menu items Drew Adams
  2007-05-22 15:20 ` Stefan Monnier
@ 2007-05-22 15:46 ` Drew Adams
  1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2007-05-22 15:46 UTC (permalink / raw)
  To: Emacs-Devel

> In some cases, I bind a menu-bar menu item to a command that is 
> not, itself, bound to a keyboard key sequence. However, I would 
> like a particular key sequence to appear in the menu next to the 
> menu item.
> 
> I don't think there is currently a way to specify (i.e. 
> hard-code) a key-binding hint for a menu item. You can add text " 
>     (C-x a)" to the menu item itself, but there is then no way to 
> right-align the binding hint.
> 
> Could this mini-feature be added after the release? The use case 
> is having a slightly different command bound to the menu item 
> than what is to be documented as the keyboard binding.

Oops - please ignore. I was unaware of :keys.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: be able to specify the binding hint shown in menu items
  2007-05-22 15:20 ` Stefan Monnier
@ 2007-05-22 16:16   ` Drew Adams
  2007-05-22 16:18     ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2007-05-22 16:16 UTC (permalink / raw)
  To: Emacs-Devel

> > I don't think there is currently a way to specify (i.e. hard-code) a
> > key-binding hint for a menu item. You can add text "     (C-x a)" to the
> > menu item itself, but there is then no way to right-align the
> > binding hint.
>
> What's wrong with :keys ?

Nothing. Didn't think there was such a thing. Discovered it after I posted.
Sorry.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: be able to specify the binding hint shown in menu items
  2007-05-22 16:16   ` Drew Adams
@ 2007-05-22 16:18     ` Drew Adams
  0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2007-05-22 16:18 UTC (permalink / raw)
  To: Emacs-Devel

> > > I don't think there is currently a way to specify (i.e. hard-code) a
> > > key-binding hint for a menu item. You can add text "     (C-x
> a)" to the
> > > menu item itself, but there is then no way to right-align the
> > > binding hint.
> >
> > What's wrong with :keys ?
>
> Nothing. Didn't think there was such a thing. Discovered it after
> I posted. Sorry.

Worse than that, in fact. I had already used it in my code, but forgot about
it.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-05-22 16:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-22 14:58 be able to specify the binding hint shown in menu items Drew Adams
2007-05-22 15:20 ` Stefan Monnier
2007-05-22 16:16   ` Drew Adams
2007-05-22 16:18     ` Drew Adams
2007-05-22 15:46 ` Drew Adams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).