summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package-bind-key.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/use-package/use-package-bind-key.el')
-rw-r--r--lisp/use-package/use-package-bind-key.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/use-package/use-package-bind-key.el b/lisp/use-package/use-package-bind-key.el
index 54389faf346..09229153f0c 100644
--- a/lisp/use-package/use-package-bind-key.el
+++ b/lisp/use-package/use-package-bind-key.el
@@ -74,10 +74,8 @@ deferred until the prefix key sequence is pressed."
(concat label " a (<string or vector> . <symbol, string or function>)"
" or list of these")))
(use-package-normalize-pairs
- #'(lambda (k)
- (pcase k
- ((pred stringp) t)
- ((pred vectorp) t)))
+ #'(lambda (k) (cond ((stringp k) t)
+ ((vectorp k) t)))
#'(lambda (v) (use-package-recognize-function v t #'stringp))
name label arg))))
@@ -91,8 +89,9 @@ deferred until the prefix key sequence is pressed."
;;;###autoload
(defun use-package-handler/:bind
(name keyword args rest state &optional bind-macro)
- (cl-destructuring-bind (nargs . commands)
- (use-package-normalize-commands args)
+ (let* ((result (use-package-normalize-commands args))
+ (nargs (car result))
+ (commands (cdr result)))
(use-package-concat
(use-package-process-keywords name
(use-package-sort-keywords