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: Qs on key-description, substitute-command-keys Date: Tue, 4 Oct 2005 16:55:43 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128470314 16011 80.91.229.2 (4 Oct 2005 23:58:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2005 23:58:34 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 05 01:58:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EMwei-0006dY-7X for ged-emacs-devel@m.gmane.org; Wed, 05 Oct 2005 01:57:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMweh-0007i0-Kj for ged-emacs-devel@m.gmane.org; Tue, 04 Oct 2005 19:57:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMweU-0007gX-MR for emacs-devel@gnu.org; Tue, 04 Oct 2005 19:56:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMweT-0007gF-0l for emacs-devel@gnu.org; Tue, 04 Oct 2005 19:56:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMweS-0007gC-Tg for emacs-devel@gnu.org; Tue, 04 Oct 2005 19:56:52 -0400 Original-Received: from [141.146.126.230] (helo=agminet03.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EMweT-0002ED-1F for emacs-devel@gnu.org; Tue, 04 Oct 2005 19:56:53 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet03.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j94NunpY023411 for ; Tue, 4 Oct 2005 18:56:49 -0500 Original-Received: from rgmgw2.us.oracle.com (localhost [127.0.0.1]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j94Numau008760 for ; Tue, 4 Oct 2005 17:56:48 -0600 Original-Received: from rgmum300.us.oracle.com (rgmum300.us.oracle.com [138.1.186.40]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j94NYSeN009623 for ; Tue, 4 Oct 2005 17:56:48 -0600 Original-Received: from dhcp-emea-uk-csvpn-gw8-141-144-136-38.vpn.oracle.com by rgmum300.us.oracle.com with ESMTP id 1233068371128470148; Tue, 04 Oct 2005 17:55:48 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Brightmail-Tracker: AAAAAQAAAAI= 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:43556 Archived-At: Why was the output from `key-description' and `substitute-command-keys' changed to use angle brackets around simple key sequences like S-tab? I have, for instance, a help string that looks like this when displayed: (S-tab or TAB: list, C-h: help). I mean, that's what it looks like in Emacs 20 - in Emacs 22, the first key sequence is shown as , while the others remain simple, without angle brackets. I'm sure there are good reasons why this was changed, but I'm curious why. Is there another standard function I can call, perhaps in combination with `substitute-command-keys', to get the simpler representation, S-tab, from the less readable ? Or should I just roll my own? Also, is there a good way to control which of several key bindings for a command is output by `substitute-command-keys'? The only way I've found is to make sure that the one I want is the last of the key sequences for that command defined in the map - and that's not always feasible. I found nothing in the manual about which binding is displayed or how to control that.