From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#14084: 24.3.50; `substitute-command-keys': allow for expansion of ... Date: Thu, 28 Mar 2013 22:17:02 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1364534255 8552 80.91.229.3 (29 Mar 2013 05:17:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Mar 2013 05:17:35 +0000 (UTC) To: 14084@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 29 06:18:00 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ULRhP-0007mI-Fa for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Mar 2013 06:17:59 +0100 Original-Received: from localhost ([::1]:55455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULRh0-0007Zx-Rg for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Mar 2013 01:17:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULRgw-0007ZW-FA for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2013 01:17:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULRgv-0005KX-7B for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2013 01:17:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULRgv-0005KR-3e for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2013 01:17:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1ULRjO-0006tD-PZ for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2013 01:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Mar 2013 05:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14084 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.136453439026451 (code B ref -1); Fri, 29 Mar 2013 05:20:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2013 05:19:50 +0000 Original-Received: from localhost ([127.0.0.1]:50420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ULRjB-0006sa-Ql for submit@debbugs.gnu.org; Fri, 29 Mar 2013 01:19:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38407) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ULRj9-0006sT-Kz for submit@debbugs.gnu.org; Fri, 29 Mar 2013 01:19:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULRge-0005I6-0F for submit@debbugs.gnu.org; Fri, 29 Mar 2013 01:17:13 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:36798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULRgd-0005I2-T1 for submit@debbugs.gnu.org; Fri, 29 Mar 2013 01:17:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULRgc-0007Wf-QX for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2013 01:17:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULRgb-0005Hg-NV for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2013 01:17:10 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:19801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULRgb-0005HX-G6 for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2013 01:17:09 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r2T5H6UT013561 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 29 Mar 2013 05:17:07 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r2T5H5Xb014172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 29 Mar 2013 05:17:05 GMT Original-Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r2T5H55H030315 for ; Fri, 29 Mar 2013 00:17:05 -0500 Original-Received: from dradamslap1 (/10.159.148.114) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 28 Mar 2013 22:17:05 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac4sPKUkbpt35nnRSF+42h72HbVuOw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72974 Archived-At: In a particular mode, suppose code remaps a command, such as `reposition-window', to a command `foo'. `substitute-command-keys' shows that fact only this way: foo That can be good information to show users, provided the currently active bindings of `reposition-window' are known to them. If not, it just obscures things. And `substitute-command-keys' might be called from a particular mode (and several minor modes might be current etc.), so that it might not be accurate or sufficient for a user to resort to `M-x where-is reposition-window' to try to find out what corresponds to in the context of the call to `substitute-command-keys'. Please add an optional arg to `substitute-command-keys' that changes the behavior. Please allow for these 3 possibilities: 1. Follow the current behavior (it could be the default): show only the entry. 2. Show instead a key binding entry for each actual-key binding caused by the remapping. IOW, expand into one or more actual-key bindings. Handle remap of remap the same way. IOW, the output would not show any entries, but would show only their expansions. 3. Show both the entries and their expansions, i.e., #1 + #2. 4. Alternatively, the entries could be links/buttons that when followed expand to actual-key bindings (in place, within the same overall list of bindings). One difference (advantage & disadvantage) with this approach would be the order of the keys in the buffer. Note that with the introduction of things like we are now farther afield from the claimed behavior (and the intention) of `substitute-command-keys': \[COMMAND] is replaced by either a keystroke sequence that invokes COMMAND, or "M-x COMMAND" ... is technically a "keystroke sequence" in one sense (it is a key binding, at least), but in another sense it is not what the user expects. When was added we more or less just punted wrt `substitute-command-keys' - we didn't really finish the job. In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600) of 2013-03-23 on VBOX Bzr revision: 112115 eliz@gnu.org-20130323093300-rjs0dgskxm9u0ya4 Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -IC:/emacs/libs/libXpm-3.5.10/include -IC:/emacs/libs/libXpm-3.5.10/src -IC:/emacs/libs/libpng-dev_1.4.3-1_win32/include -IC:/emacs/libs/zlib-dev_1.2.5-2_win32/include -IC:/emacs/libs/giflib-4.1.4-1-lib/include -IC:/emacs/libs/jpeg-6b-4-lib/include -IC:/emacs/libs/tiff-3.8.2-1-lib/include -IC:/emacs/libs/libxml2-2.7.8-w32-bin/include/libxml2 -IC:/emacs/libs/gnutls-3.1.10-w32/include -IC:/emacs/libs/libiconv-1.14-2-mingw32-dev/include'