unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: 66022@debbugs.gnu.org
Subject: bug#66022: 30.0.50; kmacro overwriting global keybindings
Date: Sat, 16 Sep 2023 09:01:37 +0200	[thread overview]
Message-ID: <875y4a38ku.fsf@igel.home> (raw)
In-Reply-To: <m2ttruzkpt.fsf@Pro.fritz.box> ("Gerd Möllmann"'s message of "Sat, 16 Sep 2023 08:38:22 +0200")

On Sep 16 2023, Gerd Möllmann wrote:

> current master 1442f4043a761e9bdeeb4e1fbe9822c2987c1502, emacs -Q
>
>   (keymap-global-set "S-<mouse-3>" 'ignore)
>
> then C-x ( C-g.
>
>   (keymap-lookup global-map "S-<mouse-3>")
>   => 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 "\v" 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."





  reply	other threads:[~2023-09-16  7:01 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-16  6:38 bug#66022: 30.0.50; kmacro overwriting global keybindings Gerd Möllmann
2023-09-16  7:01 ` Andreas Schwab [this message]
2023-09-16  7:36   ` Gerd Möllmann
2023-09-16 18:44     ` Gerd Möllmann
2023-09-16 20:06       ` Andreas Schwab
2023-09-16 20:18         ` Gerd Möllmann
2023-09-16 20:37           ` Andreas Schwab
2023-09-16 20:55             ` Gerd Möllmann
2023-09-17  6:05 ` Eli Zaretskii
2023-09-17  6:31   ` Gerd Möllmann
2023-09-17  6:40     ` Gerd Möllmann
2023-09-17  6:47       ` Eli Zaretskii
2023-09-17  6:52         ` Gerd Möllmann
2023-09-17  8:53           ` Eli Zaretskii
2023-09-17  8:58             ` Gerd Möllmann
2023-09-17  9:18               ` Eli Zaretskii
2023-09-17  9:50                 ` Gerd Möllmann
2023-09-17 10:02                 ` Gerd Möllmann
2023-09-17 10:45                   ` Eli Zaretskii
2023-09-17 11:07                     ` Gerd Möllmann
2023-09-17 11:23                       ` Eli Zaretskii
2023-09-17 11:26                         ` Gerd Möllmann
2023-09-17 17:13                       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-17 18:10                         ` Gerd Möllmann
2023-09-17 19:10                           ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-18 14:36                             ` Gerd Möllmann
2023-09-18 14:42                               ` Gerd Möllmann
2023-09-18 14:52                                 ` Eli Zaretskii
2023-09-18 14:56                                   ` Gerd Möllmann
2023-09-18 15:09                                     ` Eli Zaretskii
2023-09-18 15:18                                       ` Gerd Möllmann
2023-09-18 15:25                                         ` Gerd Möllmann
2023-09-18 16:25                                           ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-18 16:33                                             ` Gerd Möllmann
2023-09-18 17:00                                               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-18 17:54                                                 ` Gerd Möllmann
2023-09-18 18:24                                                   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-18 18:27                                                     ` Gerd Möllmann
2023-09-20  9:57                                                     ` Gerd Möllmann
2023-09-20 14:11                                                       ` Eli Zaretskii
2023-09-20 14:22                                                         ` Gerd Möllmann
2023-09-20 15:04                                                           ` Eli Zaretskii
2023-09-20 15:09                                                             ` Gerd Möllmann
2023-09-20 16:56                                                           ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-20 18:24                                                             ` Gerd Möllmann
2023-09-20 18:50                                                               ` Alan Third
2023-09-20 19:04                                                                 ` Gerd Möllmann
2023-09-21  5:13                                                                 ` Gerd Möllmann
2023-09-20 19:05                                                             ` Alan Third
2023-09-18 17:03                                           ` Eli Zaretskii
2023-09-18 17:42                                             ` Gerd Möllmann
2023-09-18 16:23                                     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-18 17:19                                       ` Eli Zaretskii
2023-10-04  5:01 ` Gerd Möllmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875y4a38ku.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=66022@debbugs.gnu.org \
    --cc=gerd.moellmann@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).