From: Hugo Heagren Date: Fri, 28 Jan 2022 22:26:41 +0000 (+0000) Subject: bind-keys-form: error for repeat sub-keywords without :repeat-map X-Git-Tag: emacs-29.0.90~1306^2~15^2~38^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1143f14d65;p=emacs.git bind-keys-form: error for repeat sub-keywords without :repeat-map Error descriptively if :continue or :exit is specified without :repeat-map. --- diff --git a/lisp/use-package/bind-key.el b/lisp/use-package/bind-key.el index 87a33e3d6ca..643094daa7f 100644 --- 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"))