mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Don't allow implicit package name arg for binders
It's unlikely that
(use-package foopkg :bind "<some-key>")
intendes to bind <some-key> to 'foopkg command.
This commit is contained in:
parent
65c7b42a14
commit
9688d2f64b
2 changed files with 6 additions and 0 deletions
|
|
@ -712,6 +712,10 @@ If RECURSED is non-nil, recurse into sublists."
|
|||
(defun use-package-normalize-binder (name keyword args)
|
||||
(use-package-as-one (symbol-name keyword) args
|
||||
(lambda (label arg)
|
||||
(unless (consp arg)
|
||||
(use-package-error
|
||||
(concat label " a (<string or vector> . <symbol or string>)"
|
||||
" or list of these")))
|
||||
(use-package-normalize-pairs (lambda (k) (or (stringp k) (vectorp k)))
|
||||
(lambda (b) (or (symbolp b) (stringp b)))
|
||||
name label arg))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue