GNU bug report logs -
#65735
[PATCH] key-translate should use the 1st key of a key sequence
Previous Next
Reported by: Shynur Xie <one.last.kiss <at> outlook.com>
Date: Mon, 4 Sep 2023 15:52:02 UTC
Severity: normal
Tags: fixed, patch
Fixed in version 29.2
Done: Robert Pluim <rpluim <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 65735 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Thu, 7 Sep 2023 13:42:18 +0000, Shynur Xie <one.last.kiss <at> 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
--
This bug report was last modified 1 year and 269 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.