Allow customising windmove user options with an empty prefix

* lisp/windmove.el (windmove--default-keybindings-type): Handle nil
as a prefix value.  (Bug#60161)
This commit is contained in:
Philip Kaludercic 2022-12-17 15:54:40 +01:00
parent c2375e7791
commit d1e0542f33

View file

@ -776,7 +776,8 @@ Default value of MODIFIERS is `shift-super'."
(defconst windmove--default-keybindings-type (defconst windmove--default-keybindings-type
`(choice (const :tag "Don't bind" nil) `(choice (const :tag "Don't bind" nil)
(cons :tag "Bind using" (cons :tag "Bind using"
(key-sequence :tag "Prefix") (choice (key-sequence :tag "Prefix")
(const :tag "No Prefix" nil))
(set :tag "Modifier" (set :tag "Modifier"
:greedy t :greedy t
;; See `(elisp) Keyboard Events' ;; See `(elisp) Keyboard Events'