diff options
author | Hugo Heagren <hugo@heagren.com> | 2022-01-17 15:41:35 +0000 |
---|---|---|
committer | Hugo Heagren <hugo@heagren.com> | 2022-01-28 22:37:37 +0000 |
commit | 5ef327ce9fc1397cdbbde8936eca37ae6383d787 (patch) | |
tree | da97916967981cb594990ec69ad0d8f7ccc7ba81 /lisp/use-package/use-package-bind-key.el | |
parent | 2203246454fddd41e0a62e78b17befce561998b9 (diff) | |
download | emacs-5ef327ce9fc1397cdbbde8936eca37ae6383d787.tar.gz emacs-5ef327ce9fc1397cdbbde8936eca37ae6383d787.tar.bz2 emacs-5ef327ce9fc1397cdbbde8936eca37ae6383d787.zip |
bind-key-form: allow :exit keyword inside repeat map
Keys bound inside the scope of :exit are bound inside the repeat map,
but do not have their repeat-map property set (so they run a function,
but 'exit' the map).
Diffstat (limited to 'lisp/use-package/use-package-bind-key.el')
-rw-r--r-- | lisp/use-package/use-package-bind-key.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/use-package/use-package-bind-key.el b/lisp/use-package/use-package-bind-key.el index d056d4266cc..73ea8ca83e0 100644 --- a/lisp/use-package/use-package-bind-key.el +++ b/lisp/use-package/use-package-bind-key.el @@ -91,11 +91,13 @@ deferred until the prefix key sequence is pressed." ;; :filter SEXP ;; :menu-name STRING ;; :package SYMBOL + ;; :exit used within :repeat-map ((or (and (eq x :map) (symbolp (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 :exit) (and (eq x :repeat-docstring) (stringp (cadr arg))) (eq x :filter) (and (eq x :menu-name) (stringp (cadr arg))) |