[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65735: [PATCH] key-translate should use the 1st key of a key sequenc
From: |
Robert Pluim |
Subject: |
bug#65735: [PATCH] key-translate should use the 1st key of a key sequence |
Date: |
Thu, 07 Sep 2023 15:49:26 +0200 |
>>>>> On Thu, 7 Sep 2023 13:42:18 +0000, Shynur Xie <one.last.kiss@outlook.com>
>>>>> said:
>> Robert:
>> Perhaps we should also check that `from' and `to' specify single
>> keys, although that might be overkill.
Shynur> Not necessary IMO.
Shynur> As a regular Emacs user, I would read its docstring before using
this
Shynur> function; the docstring already explains how to use it very clearly.
Shynur> Moreover, there're several examples in the elisp manual for
reference:
OK, Iʼll leave that bit alone.
Shynur> The docstring of `keyboard-translate' does suggest using
Shynur> `key-translate'; similarly, `define-key' suggests using
`keymap-set'.
Right. But the question is whether we should change Emacs to use the
new functions, or whether we call it 'unnecessary churn'.
Shynur> FWIW, I noticed that there're also some `define-key' invocations in
Shynur> the file "lisp/simple.el".
One function at a time :-)
Robert
--