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 13:37:58 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen [2021-11-14 19:03:52] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I'm proposing to make the key names `C-i` and `TAB` distinct, such that
>> hitting `C-h c TAB` in a tty would/could tell the users something
>> like "TAB (translated from C-i) runs the command ...".
>
> But...  how?  🤨

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].


        Stefan




reply via email to

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