projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4bd2aa
)
bind-keys-form: error for repeat sub-keywords without :repeat-map
author
Hugo Heagren
<hugo@heagren.com>
Fri, 28 Jan 2022 22:26:41 +0000
(22:26 +0000)
committer
Hugo Heagren
<hugo@heagren.com>
Fri, 28 Jan 2022 22:37:37 +0000
(22:37 +0000)
Error descriptively if :continue or :exit is specified without
:repeat-map.
lisp/use-package/bind-key.el
patch
|
blob
|
history
diff --git
a/lisp/use-package/bind-key.el
b/lisp/use-package/bind-key.el
index 87a33e3d6ca8d43742f5394abb2d659388b8484f..643094daa7fb22b72e6ce191baf1685632b2ad1e 100644
(file)
--- a/
lisp/use-package/bind-key.el
+++ b/
lisp/use-package/bind-key.el
@@
-326,6
+326,10
@@
function symbol (unquoted)."
(and prefix (not prefix-map)))
(error "Both :prefix-map and :prefix must be supplied"))
+ (when repeat-type
+ (unless repeat-map
+ (error ":continue and :exit require specifying :repeat-map")))
+
(when (and menu-name (not prefix))
(error "If :menu-name is supplied, :prefix must be too"))