From unknown Mon Jun 23 02:21:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8351 <8351@debbugs.gnu.org> To: bug#8351 <8351@debbugs.gnu.org> Subject: Status: 24.0.50; wrong bindings for remappings in C-h for prefix keys Reply-To: bug#8351 <8351@debbugs.gnu.org> Date: Mon, 23 Jun 2025 09:21:10 +0000 retitle 8351 24.0.50; wrong bindings for remappings in C-h for prefix keys reassign 8351 emacs submitter 8351 "Drew Adams" severity 8351 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 26 17:06:49 2011 Received: (at submit) by debbugs.gnu.org; 26 Mar 2011 21:06:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q3ah6-0005gj-LG for submit@debbugs.gnu.org; Sat, 26 Mar 2011 17:06:48 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q3ah4-0005gS-8y for submit@debbugs.gnu.org; Sat, 26 Mar 2011 17:06:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3agx-0007n4-W8 for submit@debbugs.gnu.org; Sat, 26 Mar 2011 17:06:40 -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 lists.gnu.org ([199.232.76.165]:41089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3agx-0007my-0i for submit@debbugs.gnu.org; Sat, 26 Mar 2011 17:06:39 -0400 Received: from [140.186.70.92] (port=58814 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3agU-0006Cj-0x for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2011 17:06:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3agG-0007kV-GF for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2011 17:05:57 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:49538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3agG-0007kI-8c for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2011 17:05:56 -0400 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p2QL5rhu025038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 26 Mar 2011 21:05:54 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p2QL5qTV011879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 26 Mar 2011 21:05:53 GMT Received: from abhmt013.oracle.com (abhmt013.oracle.com [141.146.116.22]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p2QL5qRY005556 for ; Sat, 26 Mar 2011 16:05:52 -0500 Received: from dradamslap1 (/10.159.60.21) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 26 Mar 2011 14:05:52 -0700 From: "Drew Adams" To: Subject: 24.0.50; wrong bindings for remappings in C-h for prefix keys Date: Sat, 26 Mar 2011 14:05:50 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acvr+ZXUoInfHmLaSZK8FykWvQekbg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Source-IP: acsmt358.oracle.com [141.146.40.158] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4D8E5531.004D,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: submit 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.4 (------) 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: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 From unknown Mon Jun 23 02:21:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 27 Jun 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator