From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: unhelpful menu keybinding notes Date: Mon, 17 Apr 2006 08:50:00 -0700 Message-ID: References: <85slocpp1c.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145289027 4982 80.91.229.2 (17 Apr 2006 15:50:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Apr 2006 15:50:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 17 17:50:24 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FVVzZ-0004hy-79 for ged-emacs-devel@m.gmane.org; Mon, 17 Apr 2006 17:50:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FVVzY-0007wq-P4 for ged-emacs-devel@m.gmane.org; Mon, 17 Apr 2006 11:50:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FVVzK-0007v4-Tb for emacs-devel@gnu.org; Mon, 17 Apr 2006 11:50:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FVVzI-0007uX-VP for emacs-devel@gnu.org; Mon, 17 Apr 2006 11:50:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FVVzI-0007uU-Qs for emacs-devel@gnu.org; Mon, 17 Apr 2006 11:50:04 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FVVzx-0001T8-Bk for emacs-devel@gnu.org; Mon, 17 Apr 2006 11:50:47 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k3HFo1qr013027 for ; Mon, 17 Apr 2006 10:50:01 -0500 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k3HFo0Qw018020 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Mon, 17 Apr 2006 09:50:01 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <85slocpp1c.fsf@lola.goethe.zz> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:52961 Archived-At: Alternatively, one could put explicit keyboard help strings into the menus (or have some property for that purpose on the function?). One might assume that the people with actual "", "", "" keys would still try using them without being prompted for them. Yes, this is a general problem with `substitute-command-keys', which we have discussed before. Whenever there is more than one key sequence bound to a command, the problem surfaces. No matter what algorithm is used to choose (ASCII, non-ASCII, shortest, longest, chords, non-chords, whatever), people will want to be able to specify the binding to use in the result, and there is no way to do that now. I hope we will address this after the release and find a good solution. In my own libraries I sometimes hard-code explicit bindings and sometimes rely upon \\[...]. The advantage of the former is that you can control what gets communicated; the disadvantage is that that can be incorrect if the user has changed the bindings.