From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Qs on key-description, substitute-command-keys Date: Sun, 16 Oct 2005 09:07:31 -0400 Message-ID: <87wtkdtxx4.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129468311 28689 80.91.229.6 (16 Oct 2005 13:11:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 Oct 2005 13:11:51 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 16 15:11:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ER8If-0007XS-00 for ; Sun, 16 Oct 2005 15:11:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ER8FG-0007RE-AL for ged-emacs-devel@m.gmane.org; Sun, 16 Oct 2005 09:08:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ER8En-0007IB-7M for emacs-devel@gnu.org; Sun, 16 Oct 2005 09:07:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ER8Ej-0007Dv-99 for emacs-devel@gnu.org; Sun, 16 Oct 2005 09:07:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ER8Ei-0007DR-Ns for emacs-devel@gnu.org; Sun, 16 Oct 2005 09:07:36 -0400 Original-Received: from [209.226.175.25] (helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ER8Eh-0006OE-5a for emacs-devel@gnu.org; Sun, 16 Oct 2005 09:07:36 -0400 Original-Received: from alfajor ([70.48.83.21]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20051016130732.ZEAC26967.tomts5-srv.bellnexxia.net@alfajor>; Sun, 16 Oct 2005 09:07:32 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id B89E4D7A9A; Sun, 16 Oct 2005 09:07:31 -0400 (EDT) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Sat, 15 Oct 2005 07:35:01 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44114 Archived-At: > 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