bind-keys-form: error for repeat sub-keywords without :repeat-map

Error descriptively if :continue or :exit is specified without
:repeat-map.
This commit is contained in:
Hugo Heagren 2022-01-28 22:26:41 +00:00
parent c4bd2aa3b8
commit 1143f14d65

View file

@ -326,6 +326,10 @@ function symbol (unquoted)."
(and prefix (not prefix-map))) (and prefix (not prefix-map)))
(error "Both :prefix-map and :prefix must be supplied")) (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)) (when (and menu-name (not prefix))
(error "If :menu-name is supplied, :prefix must be too")) (error "If :menu-name is supplied, :prefix must be too"))