GNU bug report logs -
#52523
29.0.50; defcustom :type 'key-sequence not following key-valid-p format
Previous Next
Reported by: Stefan Kangas <stefan <at> marxist.se>
Date: Wed, 15 Dec 2021 20:36:02 UTC
Severity: normal
Tags: patch
Found in version 29.0.50
Fixed in version 29.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #41 received at 52523 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>> I still see no problem with 'kbd', or even 'kbd-sequence'.
>
> The problem is that we don't use the name "kbd" anywhere in the new
> keymap functions, so it'd be confusing to use them in defcustom.
I started looking into this but noticed that the docstring for
`key-valid-p' says:
Say whether KEYS is a valid ‘kbd’ sequence.
A ‘kbd’ sequence is a string consisting of one and more key
strokes. The key strokes are separated by a space character.
I guess that docstring should be updated if we don't want to settle for
the terminology "`kbd' sequence".
However, if we do that the problem is that we then risk having two
definitions of "key sequence": both the old and the new style.
See also (info "(elisp) Key Sequences"), that uses the old style.
---
Relatedly, the `define-keymap' docstring currently says:
Create a new keymap and define KEY/DEFINITION pairs as key sequences.
Should that say "key bindings" instead of "key sequences"? Otherwise,
it doesn't seem clear what it does.
---
`keymap-set' says:
Set key sequence KEY to DEFINITION in KEYMAP.
So here is again the "new" style used as the definition of a key
sequence, which seems to contradict the Elisp manual.
This bug report was last modified 3 years and 226 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.