]> git.eshelyaron.com Git - emacs.git/commitdiff
bind-keys-form: error for repeat sub-keywords without :repeat-map
authorHugo Heagren <hugo@heagren.com>
Fri, 28 Jan 2022 22:26:41 +0000 (22:26 +0000)
committerHugo 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

index 87a33e3d6ca8d43742f5394abb2d659388b8484f..643094daa7fb22b72e6ce191baf1685632b2ad1e 100644 (file)
@@ -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"))