From 1143f14d650c7201d7ddbcb7012dc2c9bf3b1824 Mon Sep 17 00:00:00 2001 From: Hugo Heagren Date: Fri, 28 Jan 2022 22:26:41 +0000 Subject: [PATCH] bind-keys-form: error for repeat sub-keywords without :repeat-map Error descriptively if :continue or :exit is specified without :repeat-map. --- lisp/use-package/bind-key.el | 4 ++++ 1 file changed, 4 insertions(+) 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")) -- 2.39.2