GNU bug report logs -
#79323
30.2; Control-X-prefix not remapable
Previous Next
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
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.