GNU bug report logs - #79323
30.2; Control-X-prefix not remapable

Previous Next

Package: emacs;

Reported by: Linn Stanton <linnstanton <at> me.com>

Date: Wed, 27 Aug 2025 17:23:02 UTC

Severity: normal

Found in version 30.2

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Full log


View this message in rfc822 format

From: Howard Melman <hmelman <at> gmail.com>
To: juri <at> linkov.net
Cc: 79323 <at> debbugs.gnu.org
Subject: bug#79323: 30.2; Control-X-prefix not remapable
Date: Sat, 30 Aug 2025 23:50:27 -0400
Juri Linkov <juri <at> linkov.net> writes:

> +(defun tab-line--undefine-keys ()
> +  "Uninstall key bindings previously bound by `tab-line--define-keys'."
> +  (when tab-line-define-keys
> +    (define-key ctl-x-map [left] 'previous-buffer)
> +    (define-key ctl-x-map [C-left] 'previous-buffer)
> +    (define-key ctl-x-map [M-left] nil)
> +    (define-key ctl-x-map [right] 'next-buffer)
> +    (define-key ctl-x-map [C-right] 'next-buffer)
> +    (define-key ctl-x-map [M-right] 'next-buffer)))

I didn't check this, but could you do this instead? 
(I use this form of define-keymap in other cases.)

(defun tab-line--undefine-keys ()
  "Uninstall key bindings previously bound by `tab-line--define-keys'."
  (when tab-line-define-keys
    (define-keymap :keymap ctl-x-map
      [left] 'previous-buffer
      [C-left] 'previous-buffer
      [M-left] nil
      [right] 'next-buffer
      [C-right] 'next-buffer
      [M-right] 'next-buffer)))

-- 

Howard




This bug report was last modified 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.