[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Round-tripping key definitions

From: Lars Ingebrigtsen
Subject: Re: Round-tripping key definitions
Date: Mon, 15 Nov 2021 08:31:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> After allowing binding [TAB], hitting `C-i' does not take me to that
> [TAB].

D'oh.  That's the global key binding.  Let's see...  With:

(local-set-key [TAB]
               (lambda ()
                 (message "TAB: %S" (this-command-keys))))
(local-set-key [?\C-i]
               (lambda ()
                 (message "C-i: %S" (this-command-keys))))

(global-set-key [tab] nil)
(global-set-key (kbd "TAB") nil)

(define-key function-key-map [?\C-i] [TAB])
(define-key function-key-map [tab] '[TAB])

Then indeed everything seems to work?  So I guess this would be a
practical solution?  Unless I've missed some combinations to test.

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]