From unknown Sat Aug 09 09:36:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6882: 24.0.50; C-h does not show remap bindings Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Aug 2010 18:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6882@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.128215477325741 (code B ref -1); Wed, 18 Aug 2010 18:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Aug 2010 18:06:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oln1g-0006h8-PV for submit@debbugs.gnu.org; Wed, 18 Aug 2010 14:06:13 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oln1f-0006h3-2w for submit@debbugs.gnu.org; Wed, 18 Aug 2010 14:06:11 -0400 Received: from lists.gnu.org ([199.232.76.165]:55297) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Oln2h-0004P0-TB for submit@debbugs.gnu.org; Wed, 18 Aug 2010 14:07:16 -0400 Received: from [140.186.70.92] (port=33720 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oln2g-0001rW-Dh for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:07:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oln2c-0002Wl-1l for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:07:14 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:65141) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oln2b-0002WU-TC for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:07:10 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o7II75dK012167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 18 Aug 2010 18:07:08 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o7IGIROK007308 for ; Wed, 18 Aug 2010 18:07:04 GMT Received: from abhmt015.oracle.com by acsmt354.oracle.com with ESMTP id 508694841282154779; Wed, 18 Aug 2010 11:06:19 -0700 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 18 Aug 2010 11:06:19 -0700 From: "Drew Adams" Date: Wed, 18 Aug 2010 11:06:20 -0700 Message-ID: <4D0F14CBF03E4CA2A892AABA93FB0B21@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Thread-Index: Acs/AA9o1STanPCKTyKu4bSPclA/9w== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) emacs -Q (define-key ctl-x-map "p" bookmark-map) (defvar foo-mode-map (make-sparse-keymap) "") (define-minor-mode foo-mode "..." nil " FOO") (define-key bookmark-map "3" 'forward-char) (define-key bookmark-map "4" 'previous-line) (define-key foo-mode-map [remap forward-char] 'forward-line) (define-key foo-mode-map "\C-xp4" 'next-line) M-x foo-mode C-h k C-x p 3 ; forward-line (correct) C-h k C-x p 4 ; next-line (correct) C-x p C-h ; incomplete - `C-x p 3' is not listed The `C-x p 4' binding in `foo-mode-map' is listed by `C-x p C-h', but there is no binding listed in `foo-mode-map' for the remapped command `forward-char'. You should either see a `C-x p 3' or (more precisely) a binding listed in `foo-mode-map'. Better would be to see both. You will perhaps argue that command `forward-line' is not actually bound to `3' on the prefix key `C-x p'. But from a user perspective it can be argued that it is. When you do `C-h k C-x p 3', for example, the output says: "C-x p 3 runs the command forward-line... It is bound to C-f, C-x p 3." That second line is a lie - the command is not actually bound to `C-x p 3'. But it is a useful lie. To be correct, we would say "It is bound to C-f, ." But giving the resulting key is helpful. For both `C-h k' and C-h, the most helpful might be to show both and `C-x p 3'. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-08-16 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include' From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 28 10:14:59 2011 Received: (at control) by debbugs.gnu.org; 28 Mar 2011 14:14:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4DDf-0005kO-0Q for submit@debbugs.gnu.org; Mon, 28 Mar 2011 10:14:59 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4DDd-0005kC-0l for control@debbugs.gnu.org; Mon, 28 Mar 2011 10:14:57 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhgIANGWkE1MCqRC/2dsb2JhbACYP4x/eIhruXGFaQSWBQ X-IronPort-AV: E=Sophos;i="4.63,255,1299474000"; d="scan'208";a="98348031" Received: from 76-10-164-66.dsl.teksavvy.com (HELO ceviche.home) ([76.10.164.66]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 28 Mar 2011 10:14:51 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 3CA52660F8; Mon, 28 Mar 2011 10:14:51 -0400 (EDT) From: Stefan Monnier To: control@debbugs.gnu.org Subject: Re: bug#8351: 24.0.50; wrong bindings for remappings in C-h for prefix keys Message-ID: References: Date: Mon, 28 Mar 2011 10:14:51 -0400 In-Reply-To: (Drew Adams's message of "Sat, 26 Mar 2011 14:05:50 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) forcemerge 6882 8351 thanks >>>>> "Drew" == Drew Adams writes: > I have this in some of my code: > (defvar bmkp-jump-map nil "...") > (define-prefix-command 'bmkp-jump-map) > (define-key ctl-x-map "j" bmkp-jump-map) > (define-key bmkp-jump-map "tf%*" 'bmkp-file-all-tags-regexp-jump) > (define-key icicle-mode-map > [remap bmkp-file-all-tags-regexp-jump] > 'icicle-bookmark-file-all-tags-regexp) > Then, in Icicle (minor) mode, `C-x j t f % *' invokes > `icicle-bookmark-file-all-tags-regexp', as intended. And `C-h k' shows > the correct doc, citing `icicle-bookmark-file-all-tags-regexp'. > Similarly, `C-h w icicle-bookmark-file-all-tags-regexp' gives the right > output. In all respects, the help commands work as expected. > However, still in Icicle mode, `C-x j C-h' shows the remapped command > instead of the remap target command: > C-x j t f % * bmkp-file-all-tags-regexp-jump > Likewise, for `C-x j t C-h', `C-x j t f C-h' etc., as well as for just > `C-x C-h'. They all show the wrong thing. > Seems that using `C-h' does not work properly at all wrt remapped > commands. > In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) > of 2011-03-21 on 3249CTO > Windowing system distributor `Microsoft Corp.', version 5.1.2600 > configured using `configure --with-gcc (4.5) --no-opt --cflags > -Ic:/imagesupport/include' From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 28 10:22:46 2011 Received: (at control) by debbugs.gnu.org; 28 Mar 2011 14:22:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4DLC-0005vS-72 for submit@debbugs.gnu.org; Mon, 28 Mar 2011 10:22:46 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4DL8-0005v6-TR; Mon, 28 Mar 2011 10:22:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEACSZkE1MCqRC/2dsb2JhbAClPniIa7lqhWkElgU X-IronPort-AV: E=Sophos;i="4.63,255,1299474000"; d="scan'208";a="98349394" Received: from 76-10-164-66.dsl.teksavvy.com (HELO ceviche.home) ([76.10.164.66]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 28 Mar 2011 10:22:29 -0400 Received: by ceviche.home (Postfix, from userid 20848) id A639C660F8; Mon, 28 Mar 2011 10:22:28 -0400 (EDT) From: Stefan Monnier To: "Drew Adams" Subject: Re: bug#8350: 24.0.50; wrong bindings for remapped keys Message-ID: References: Date: Mon, 28 Mar 2011 10:22:28 -0400 In-Reply-To: (Drew Adams's message of "Sun, 27 Mar 2011 14:51:52 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: control Cc: 8350@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) forcemerge 6882 8350 thanks >> > (define-key ctl-x-map [remap forward-char] 'backward-char) >> > C-x C-h (says C-x f is bound to `forward-char') >> But ctl-x-map is never used as one of the active maps, it's always >> limited to being a prefix map bound to C-x, so the define-key >> above will have pretty much no effect. > It was a simplified example. And whether `ctl-x-map' is used as an > active map is irrelevant, Well, since the `remap' is in ctl-x-map it is of crucial importance. > I think, to the bugged behavior wrt `PREFIX-KEY C-h' described here. That problem is in bug#6881 and bug#8351 so I don't think it needs a third bug report. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun May 29 15:01:20 2011 Received: (at control) by debbugs.gnu.org; 29 May 2011 19:01:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQlEm-0006hL-L6 for submit@debbugs.gnu.org; Sun, 29 May 2011 15:01:20 -0400 Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQlEk-0006h7-2f for control@debbugs.gnu.org; Sun, 29 May 2011 15:01:18 -0400 Received: from furball ([64.134.101.122]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p4TJ1Chp014505 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 29 May 2011 15:01:12 -0400 Received: by furball (Postfix, from userid 1000) id 60D8A16087D; Sun, 29 May 2011 15:01:11 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8350 Date: Sun, 29 May 2011 15:01:11 -0400 Message-ID: <87ei3hpc08.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 8350 thanks