GNU bug report logs -
#58799
Make winner key sequences repeatable in repeat-mode
Previous Next
Reported by: Damien Cassou <damien <at> cassou.me>
Date: Wed, 26 Oct 2022 15:02:03 UTC
Severity: normal
Tags: patch
Fixed in version 29.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 58799 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Thu, 27 Oct 2022 03:58:38 -0700, Stefan Kangas <stefankangas <at> gmail.com> said:
Stefan> I don't think I see any contradiction, as `keymap-set' requires its
Stefan> second argument to be `key-valid-p'. So that last one should just be:
Stefan> (keymap-set global-map "<right>" #'ignore)
Now that Iʼve actually run some more tests, I see where the confusion
is coming from. You canʼt actually eval this:
(defvar-keymap winner-repeat-map
:doc "Keymap to repeat winner key sequences. Used in `repeat-mode'."
[left] #'winner-undo
[right] #'winner-redo)
or this:
(defvar-keymap winner-repeat-map
:doc "Keymap to repeat winner key sequences. Used in `repeat-mode'."
<left> #'winner-undo
<right> #'winner-redo)
(but you can stick them in a .el file)
But you can eval this:
(defvar-keymap winner-repeat-map
:doc "Keymap to repeat winner key sequences. Used in `repeat-mode'."
"<left>" #'winner-undo
"<right>" #'winner-redo)
Well, TIL. I donʼt think itʼs going to result in any patches from me
though, unless we want to disallow `[left]' and `[right]' in
`defvar-keymap' :-)
Robert
--
This bug report was last modified 2 years and 206 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.