From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#66022: 30.0.50; kmacro overwriting global keybindings Date: Sat, 16 Sep 2023 09:01:37 +0200 Message-ID: <875y4a38ku.fsf@igel.home> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7277"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66022@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 16 09:02:11 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qhPJi-0001hL-IZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Sep 2023 09:02:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhPJX-0000w8-Su; Sat, 16 Sep 2023 03:01:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhPJU-0000vX-1c for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 03:01:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhPJT-0002Mb-Nz for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 03:01:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhPJa-00047t-7D for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 03:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Sep 2023 07:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66022 X-GNU-PR-Package: emacs Original-Received: via spool by 66022-submit@debbugs.gnu.org id=B66022.169484771115845 (code B ref 66022); Sat, 16 Sep 2023 07:02:02 +0000 Original-Received: (at 66022) by debbugs.gnu.org; 16 Sep 2023 07:01:51 +0000 Original-Received: from localhost ([127.0.0.1]:45270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhPJP-00047U-CB for submit@debbugs.gnu.org; Sat, 16 Sep 2023 03:01:51 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:59549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhPJK-00047J-Kt for 66022@debbugs.gnu.org; Sat, 16 Sep 2023 03:01:50 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Rnhmy3ZfRz1r4Hg; Sat, 16 Sep 2023 09:01:38 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4Rnhmy1s66z1qqlS; Sat, 16 Sep 2023 09:01:38 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id kceaWnhlVfo2; Sat, 16 Sep 2023 09:01:37 +0200 (CEST) X-Auth-Info: 35B/p784BK18QX7Mh68v6+3u64qDoiHTi/fb4EsIQhqiJ07NZXZZ4vs98+ubtBQ0 Original-Received: from igel.home (aftr-62-216-205-118.dynamic.mnet-online.de [62.216.205.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 16 Sep 2023 09:01:37 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 393D72C1C1A; Sat, 16 Sep 2023 09:01:37 +0200 (CEST) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Sat, 16 Sep 2023 08:38:22 +0200") X-Yow: Yow! Are we wet yet? X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270585 Archived-At: On Sep 16 2023, Gerd Möllmann wrote: > current master 1442f4043a761e9bdeeb4e1fbe9822c2987c1502, emacs -Q > > (keymap-global-set "S-" 'ignore) > > then C-x ( C-g. > > (keymap-lookup global-map "S-") > => kmacro-end-call-mouse > > Notice that the binding has been overwritten. That's kmacro-call-mouse-event. > This is actually not the binding I care about, but it's the only one I > can easily reproduce with emacs -Q. With my init file, and with a > (trace-function 'global-set-key) I see > > ====================================================================== > 1 -> (global-set-key "(" kmacro-start-macro) > 1 <- global-set-key: kmacro-start-macro > ====================================================================== > 1 -> (global-set-key ")" kmacro-end-macro) > 1 <- global-set-key: kmacro-end-macro > ====================================================================== > 1 -> (global-set-key "e" kmacro-end-and-call-macro) > 1 <- global-set-key: kmacro-end-and-call-macro > ====================================================================== > 1 -> (global-set-key [f3] kmacro-start-macro-or-insert-counter) > 1 <- global-set-key: kmacro-start-macro-or-insert-counter > ====================================================================== > 1 -> (global-set-key [f4] kmacro-end-or-call-macro) > 1 <- global-set-key: kmacro-end-or-call-macro > ====================================================================== > 1 -> (global-set-key " " kmacro-keymap) > 1 <- global-set-key: kmacro-keymap > ====================================================================== > 1 -> (global-set-key "6" 2C-command) > 1 <- global-set-key: 2C-command > ====================================================================== > 1 -> (global-set-key [f2] 2C-command) > 1 <- global-set-key: 2C-command > > which overwrites part of my key bindings, also with ones from two-column. >From kmacro.el: ;;; Provide some binding for startup: ;;;###autoload (global-set-key "\C-x(" #'kmacro-start-macro) ;;;###autoload (global-set-key "\C-x)" #'kmacro-end-macro) ;;;###autoload (global-set-key "\C-xe" #'kmacro-end-and-call-macro) ;;;###autoload (global-set-key [f3] #'kmacro-start-macro-or-insert-counter) ;;;###autoload (global-set-key [f4] #'kmacro-end-or-call-macro) ;;;###autoload (global-set-key "\C-x\C-k" #'kmacro-keymap) They are all commented out (only to be put in loaddefs.el), so they should not be executed when kmacro is loaded. Maybe try make bootstrap? -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."