From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: Qs on key-description, substitute-command-keys
Date: Sun, 16 Oct 2005 09:07:31 -0400 [thread overview]
Message-ID: <87wtkdtxx4.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICMEGMCNAA.drew.adams@oracle.com> (Drew Adams's message of "Sat, 15 Oct 2005 07:35:01 -0700")
> 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
next prev parent reply other threads:[~2005-10-16 13:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-04 23:55 Qs on key-description, substitute-command-keys Drew Adams
2005-10-05 16:23 ` Kevin Rodgers
2005-10-05 16:39 ` Drew Adams
2005-10-14 22:53 ` Drew Adams
2005-10-15 11:27 ` Juri Linkov
2005-10-15 14:25 ` Drew Adams
2005-10-16 14:40 ` Richard M. Stallman
2005-10-15 11:54 ` Stefan Monnier
2005-10-15 14:35 ` Drew Adams
2005-10-16 13:07 ` Stefan Monnier [this message]
2005-10-16 14:40 ` Richard M. Stallman
2005-10-15 18:00 ` John S. Yates, Jr.
2005-10-16 13:12 ` 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=87wtkdtxx4.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@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.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).