summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package-bind-key.el
diff options
context:
space:
mode:
authorJacob First <jacob.first@member.fsf.org>2022-09-29 02:36:43 -0400
committerJacob First <jacob.first@member.fsf.org>2022-09-29 04:01:42 -0400
commitec96b4766418fdfce2d7827fa6ddeb7257ad6cf7 (patch)
treed76d81dea03592d3ba3e5211292b9b7bdb67d199 /lisp/use-package/use-package-bind-key.el
parentdaa124e1cc5ea0154f47f7ee271b8922a51c1be8 (diff)
downloademacs-ec96b4766418fdfce2d7827fa6ddeb7257ad6cf7.tar.gz
emacs-ec96b4766418fdfce2d7827fa6ddeb7257ad6cf7.tar.bz2
emacs-ec96b4766418fdfce2d7827fa6ddeb7257ad6cf7.zip
bind-keys supports passing a list of keymaps as :map argument
Diffstat (limited to 'lisp/use-package/use-package-bind-key.el')
-rw-r--r--lisp/use-package/use-package-bind-key.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/use-package/use-package-bind-key.el b/lisp/use-package/use-package-bind-key.el
index 9642f311750..7c79f450831 100644
--- a/lisp/use-package/use-package-bind-key.el
+++ b/lisp/use-package/use-package-bind-key.el
@@ -86,19 +86,20 @@ deferred until the prefix key sequence is pressed."
;; :prefix-docstring STRING
;; :prefix-map SYMBOL
;; :prefix STRING
- ;; :repeat-docstring STRING
+ ;; :repeat-docstring STRING
;; :repeat-map SYMBOL
;; :filter SEXP
;; :menu-name STRING
;; :package SYMBOL
- ;; :continue and :exit are used within :repeat-map
- ((or (and (eq x :map) (symbolp (cadr arg)))
+ ;; :continue and :exit are used within :repeat-map
+ ((or (and (eq x :map) (or (symbolp (cadr arg))
+ (listp (cadr arg))))
(and (eq x :prefix) (stringp (cadr arg)))
(and (eq x :prefix-map) (symbolp (cadr arg)))
(and (eq x :prefix-docstring) (stringp (cadr arg)))
- (and (eq x :repeat-map) (symbolp (cadr arg)))
- (eq x :continue)
- (eq x :exit)
+ (and (eq x :repeat-map) (symbolp (cadr arg)))
+ (eq x :continue)
+ (eq x :exit)
(and (eq x :repeat-docstring) (stringp (cadr arg)))
(eq x :filter)
(and (eq x :menu-name) (stringp (cadr arg)))