emacs-devel
[Top][All Lists]
Advanced

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

Re: Round-tripping key definitions


From: Stefan Monnier
Subject: Re: Round-tripping key definitions
Date: Sun, 14 Nov 2021 17:27:52 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen [2021-11-14 19:51:52] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I was thinking of starting with changing `kbd` (and friends) so that
>>
>>     (kbd "TAB")    =>  [TAB]
>>     (kbd "M-TAB")  =>  [M-TAB]
>>     ...
>>
>> and then look for ways to unbreak the result, such as adding
>> a `function-key-map` entry from [?\C-i] to [TAB].
>
> Hm...  but what if the user wanted to bind "C-i" instead?  When hitting
> the `C-i' key, won't that get mapped to [TAB], too?

No, the `function-key-map` entries are only used if there's no binding
for the key.


        Stefan




reply via email to

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