From unknown Sat Aug 16 16:21:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10566: some files bind to global-map "C-x" instead of ctl-x-map Resent-From: Teika Kazura Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jan 2012 18:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10566 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 10566@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.132708237025053 (code B ref -1); Fri, 20 Jan 2012 18:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jan 2012 17:59:30 +0000 Received: from localhost ([127.0.0.1]:36902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RoIkL-0006W1-QF for submit@debbugs.gnu.org; Fri, 20 Jan 2012 12:59:30 -0500 Received: from eggs.gnu.org ([140.186.70.92]:51344) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RoDYl-00053p-E7 for submit@debbugs.gnu.org; Fri, 20 Jan 2012 07:27:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoDXQ-0004qE-TC for submit@debbugs.gnu.org; Fri, 20 Jan 2012 07:25:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:54307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoDXQ-0004pE-Nt for submit@debbugs.gnu.org; Fri, 20 Jan 2012 07:25:48 -0500 Received: from eggs.gnu.org ([140.186.70.92]:39977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoDXA-00040H-K1 for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2012 07:25:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoDX7-0004np-HB for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2012 07:25:32 -0500 Received: from karen.lavabit.com ([72.249.41.33]:58663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoDX7-0004nQ-BM for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2012 07:25:29 -0500 Received: from a.earth.lavabit.com (a.earth.lavabit.com [192.168.111.10]) by karen.lavabit.com (Postfix) with ESMTP id C0D4611BAE3; Fri, 20 Jan 2012 06:25:27 -0600 (CST) Received: from localhost (p4186-ipad301hodogaya.kanagawa.ocn.ne.jp [58.88.3.186]) by lavabit.com with ESMTP id F3JJASBS57QN; Fri, 20 Jan 2012 06:25:27 -0600 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=U0wjEpkK71CEKWW+ASWRLFFZTY/UNl2civR0VFG/nvQ3u0Nli+WJ+YDdiAZyxaeHZc8JyvMT0TOURjJYWGELwZBwliP3u7tGd3R/IvvT6WYS1JDQDnGehwmEZcBJiNNCJDo9Tb8498saGu8UmD1Gl+G2HsZUU0ePjEVOj3h/u94=; h=Date:Message-Id:To:Subject:From:Mime-Version:Content-Type:Content-Transfer-Encoding; Date: Fri, 20 Jan 2012 21:23:42 +0900 (JST) Message-Id: <20120120.212342.1876052013036691683.teika@lavabit.com> From: Teika Kazura Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.2 (----) X-Mailman-Approved-At: Fri, 20 Jan 2012 12:59:27 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -4.2 (----) Hi, Emacs developers. In recent versions of emacs - at least in 23.3.3 and 24.0.92 - some files do (define-key global-map "\C-x\C-j" 'some-command) but it has to be (define-key ctl-x-map "\C-j" 'some-command) If you bind "C-x" to non-keymap, you'll receive an error. I've searched for "define-key.*global.*C-x" with the tool "ack" (it's like grep) in emacs-24.0.92/lisp/, and all hits are: ------------------------------------------------------------------------ obsolete/iso-insert.el:624: (define-key global-map "\C-x8" 8859-1-map)) dired-x.el:88: (define-key global-map "\C-x\C-j" 'dired-jump) dired-x.el:89: (define-key global-map "\C-x4\C-j" 'dired-jump-other-window)) dired-x.el:91: (define-key global-map "\C-x\C-j" nil)) dired-x.el:93: (define-key global-map "\C-x4\C-j" nil)))) vc/vc-hooks.el:944:(define-key global-map "\C-xv" 'vc-prefix-map) ------------------------------------------------------------------------ There's also lookup-key, but I don't know how to fix some of them. All occurrences are: ------------------------------------------------------------------------ eshell/em-term.el:221:; (lookup-key (current-global-map) "\C-x")) eshell/em-term.el:244:; (copy-keymap (lookup-key (current-global-map) "\C-x"))) term.el:911: (copy-keymap (lookup-key (current-global-map) "\C-x"))) term.el:3484: (lookup-key (current-global-map) "\C-x")) obsolete/iso-insert.el:623: (if (not (lookup-key global-map "\C-x8")) dired-x.el:90: (if (eq 'dired-jump (lookup-key global-map "\C-x\C-j")) dired-x.el:92: (if (eq 'dired-jump-other-window (lookup-key global-map "\C-x4\C-j")) ------------------------------------------------------------------------ Thank you very much for developing Emacs. Sincerely, Teika (Teika kazura) From unknown Sat Aug 16 16:21:04 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Teika Kazura Subject: bug#10566: closed (Re: bug#10566: some files bind to global-map "C-x" instead of ctl-x-map) Message-ID: References: <5gsjj3rxx5.fsf@fencepost.gnu.org> <20120120.212342.1876052013036691683.teika@lavabit.com> X-Gnu-PR-Message: they-closed 10566 X-Gnu-PR-Package: emacs Reply-To: 10566@debbugs.gnu.org Date: Thu, 26 Jan 2012 02:39:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1327545542-5239-1" This is a multi-part message in MIME format... ------------=_1327545542-5239-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #10566: some files bind to global-map "C-x" instead of ctl-x-map which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 10566@debbugs.gnu.org. --=20 10566: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10566 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1327545542-5239-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 10566-done) by debbugs.gnu.org; 26 Jan 2012 02:38:32 +0000 Received: from localhost ([127.0.0.1]:44229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RqFEN-0001Lm-V2 for submit@debbugs.gnu.org; Wed, 25 Jan 2012 21:38:32 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:56373 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RqFEL-0001Le-9t for 10566-done@debbugs.gnu.org; Wed, 25 Jan 2012 21:38:30 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RqFDr-00051u-4f; Wed, 25 Jan 2012 21:37:59 -0500 From: Glenn Morris To: 10566-done@debbugs.gnu.org Subject: Re: bug#10566: some files bind to global-map "C-x" instead of ctl-x-map References: <20120120.212342.1876052013036691683.teika@lavabit.com> X-Spook: bank class struggle afsatcom USCODE Bin Laden LLNL lock X-Ran: kEEn${gq"lJh{-5i)y@.ob:vJy~X?SJUM"92:_Jn (Teika Kazura's message of "Fri, 20 Jan 2012 21:23:42 +0900 (JST)") Message-ID: <5gsjj3rxx5.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10566-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -4.2 (----) Version: 24.0.93 Teika Kazura wrote: > In recent versions of emacs - at least in 23.3.3 and 24.0.92 - Since always probably (at least 21.1). > some files do > (define-key global-map "\C-x\C-j" 'some-command) > but it has to be > (define-key ctl-x-map "\C-j" 'some-command) > If you bind "C-x" to non-keymap, you'll receive an error. Thanks for the report. > obsolete/iso-insert.el:624: (define-key global-map "\C-x8" 8859-1-map)) Let's not worry about obsolete things (one more reason to remove it). > dired-x.el:88: (define-key global-map "\C-x\C-j" 'dired-jump) > dired-x.el:89: (define-key global-map "\C-x4\C-j" 'dired-jump-other-window)) > dired-x.el:91: (define-key global-map "\C-x\C-j" nil)) > dired-x.el:93: (define-key global-map "\C-x4\C-j" nil)))) Fixed. > vc/vc-hooks.el:944:(define-key global-map "\C-xv" 'vc-prefix-map) I don't think this matters, since it is preloaded, so it's impossible to change the C-x mapping before this point, but I changed it anyway. > eshell/em-term.el:221:; (lookup-key (current-global-map) "\C-x")) > eshell/em-term.el:244:; (copy-keymap (lookup-key (current-global-map) "\C-x"))) Let's not worry about code that has never been uncommented. > term.el:911: (copy-keymap (lookup-key (current-global-map) "\C-x"))) Changed. > term.el:3484: (lookup-key (current-global-map) "\C-x")) I think it is appropriate to leave this as-is. > obsolete/iso-insert.el:623: (if (not (lookup-key global-map "\C-x8")) Obsolete, ignoring. > dired-x.el:90: (if (eq 'dired-jump (lookup-key global-map "\C-x\C-j")) > dired-x.el:92: (if (eq 'dired-jump-other-window (lookup-key global-map "\C-x4\C-j")) Fixed. ------------=_1327545542-5239-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 20 Jan 2012 17:59:30 +0000 Received: from localhost ([127.0.0.1]:36902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RoIkL-0006W1-QF for submit@debbugs.gnu.org; Fri, 20 Jan 2012 12:59:30 -0500 Received: from eggs.gnu.org ([140.186.70.92]:51344) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RoDYl-00053p-E7 for submit@debbugs.gnu.org; Fri, 20 Jan 2012 07:27:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoDXQ-0004qE-TC for submit@debbugs.gnu.org; Fri, 20 Jan 2012 07:25:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:54307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoDXQ-0004pE-Nt for submit@debbugs.gnu.org; Fri, 20 Jan 2012 07:25:48 -0500 Received: from eggs.gnu.org ([140.186.70.92]:39977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoDXA-00040H-K1 for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2012 07:25:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoDX7-0004np-HB for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2012 07:25:32 -0500 Received: from karen.lavabit.com ([72.249.41.33]:58663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoDX7-0004nQ-BM for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2012 07:25:29 -0500 Received: from a.earth.lavabit.com (a.earth.lavabit.com [192.168.111.10]) by karen.lavabit.com (Postfix) with ESMTP id C0D4611BAE3; Fri, 20 Jan 2012 06:25:27 -0600 (CST) Received: from localhost (p4186-ipad301hodogaya.kanagawa.ocn.ne.jp [58.88.3.186]) by lavabit.com with ESMTP id F3JJASBS57QN; Fri, 20 Jan 2012 06:25:27 -0600 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=U0wjEpkK71CEKWW+ASWRLFFZTY/UNl2civR0VFG/nvQ3u0Nli+WJ+YDdiAZyxaeHZc8JyvMT0TOURjJYWGELwZBwliP3u7tGd3R/IvvT6WYS1JDQDnGehwmEZcBJiNNCJDo9Tb8498saGu8UmD1Gl+G2HsZUU0ePjEVOj3h/u94=; h=Date:Message-Id:To:Subject:From:Mime-Version:Content-Type:Content-Transfer-Encoding; Date: Fri, 20 Jan 2012 21:23:42 +0900 (JST) Message-Id: <20120120.212342.1876052013036691683.teika@lavabit.com> To: bug-gnu-emacs@gnu.org Subject: some files bind to global-map "C-x" instead of ctl-x-map From: Teika Kazura Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 20 Jan 2012 12:59:27 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -4.2 (----) Hi, Emacs developers. In recent versions of emacs - at least in 23.3.3 and 24.0.92 - some files do (define-key global-map "\C-x\C-j" 'some-command) but it has to be (define-key ctl-x-map "\C-j" 'some-command) If you bind "C-x" to non-keymap, you'll receive an error. I've searched for "define-key.*global.*C-x" with the tool "ack" (it's like grep) in emacs-24.0.92/lisp/, and all hits are: ------------------------------------------------------------------------ obsolete/iso-insert.el:624: (define-key global-map "\C-x8" 8859-1-map)) dired-x.el:88: (define-key global-map "\C-x\C-j" 'dired-jump) dired-x.el:89: (define-key global-map "\C-x4\C-j" 'dired-jump-other-window)) dired-x.el:91: (define-key global-map "\C-x\C-j" nil)) dired-x.el:93: (define-key global-map "\C-x4\C-j" nil)))) vc/vc-hooks.el:944:(define-key global-map "\C-xv" 'vc-prefix-map) ------------------------------------------------------------------------ There's also lookup-key, but I don't know how to fix some of them. All occurrences are: ------------------------------------------------------------------------ eshell/em-term.el:221:; (lookup-key (current-global-map) "\C-x")) eshell/em-term.el:244:; (copy-keymap (lookup-key (current-global-map) "\C-x"))) term.el:911: (copy-keymap (lookup-key (current-global-map) "\C-x"))) term.el:3484: (lookup-key (current-global-map) "\C-x")) obsolete/iso-insert.el:623: (if (not (lookup-key global-map "\C-x8")) dired-x.el:90: (if (eq 'dired-jump (lookup-key global-map "\C-x\C-j")) dired-x.el:92: (if (eq 'dired-jump-other-window (lookup-key global-map "\C-x4\C-j")) ------------------------------------------------------------------------ Thank you very much for developing Emacs. Sincerely, Teika (Teika kazura) ------------=_1327545542-5239-1--