[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Qs on key-description, substitute-command-keys
From: |
Stefan Monnier |
Subject: |
Re: Qs on key-description, substitute-command-keys |
Date: |
Sun, 16 Oct 2005 09:07:31 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> I think we should devise some way to get the desired result
> without going through contorsions like `advertized-bla'.
> ... the first thing that jumps to my mind is to rely
> on a `preferred-binding' property (containing a key-sequence)
> on the command symbol, or otherwise require the use of a
> menu-item for the main binding and then obey a boolean
> ":preferred-binding" property placed on the menu-item.
> I like the former, as the latter sounds very restrictive (we don't want menu
> explosion, just so people can get user-friendly messages with bindings in
> them).
Please read up on what is a "menu-item" in a keymap. It's used for "menu
items", but can be used anywhere. E.g. grep for menu-item in pcvs-defs.el.
> However, I would prefer a list of preferred bindings, in order of
> preference, to a single binding. If, for some reason, the exact binding is
> not known (e.g. might have changed), so that the first preference isn't
> available (bound), the next available binding would be used, in order. As a
> shortcut, a single binding name could be used in place of the list (= your
> suggestion).
That makes sense,
Stefan
- Qs on key-description, substitute-command-keys, Drew Adams, 2005/10/04
- Re: Qs on key-description, substitute-command-keys, Kevin Rodgers, 2005/10/05
- RE: Qs on key-description, substitute-command-keys, Drew Adams, 2005/10/14
- Re: Qs on key-description, substitute-command-keys, Stefan Monnier, 2005/10/15
- Re: Qs on key-description, substitute-command-keys, John S. Yates, Jr., 2005/10/15
- Re: Qs on key-description, substitute-command-keys, Stefan Monnier, 2005/10/16
- Re: Qs on key-description, substitute-command-keys, Juri Linkov, 2005/10/15