[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61227: 29.0.60; Customize UI for customization of keys
From: |
Drew Adams |
Subject: |
bug#61227: 29.0.60; Customize UI for customization of keys |
Date: |
Thu, 2 Feb 2023 16:06:48 +0000 |
FWIW (caveat: I'm not following this thread):
If defcustom type `key-sequence' is being used,
you might consider doing something like this
(besides, yes, making clear what `key-sequence'
requires as input - which really should be done
for all uses of that type):
Let users provide either what `key-sequence'
expects (a key description) or the symbol of a
command to remap.
I use this, for example, as part of defining a
`key-definition' widget based on `lazy':
(choice
(key-sequence :tag "Key" :value [ignore])
;; Use `symbolp' instead of `commandp', in case
;; the library defining the command isn't loaded.
(restricted-sexp :tag "Command to remap"
:match-alternatives (symbolp) :value ignore))