mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 06:50:23 -08:00
Fix to :ensure normalization
This commit is contained in:
parent
a6edb08122
commit
71f894fe78
1 changed files with 5 additions and 4 deletions
|
|
@ -241,14 +241,15 @@ then the expanded macros do their job silently."
|
||||||
#'use-package-normalize-value)))
|
#'use-package-normalize-value)))
|
||||||
|
|
||||||
(:ensure
|
(:ensure
|
||||||
(use-package-only-one (symbol-name head) args
|
|
||||||
(if (null args)
|
(if (null args)
|
||||||
t
|
t
|
||||||
|
(use-package-only-one (symbol-name head) args
|
||||||
(lambda (label arg)
|
(lambda (label arg)
|
||||||
(if (symbolp arg)
|
(if (symbolp arg)
|
||||||
arg
|
arg
|
||||||
(use-package-error
|
(use-package-error
|
||||||
":ensure wants an optional package name (a unquoted symbol name)"))))))
|
(concat ":ensure wants an optional package name "
|
||||||
|
"(an unquoted symbol name)")))))))
|
||||||
|
|
||||||
((or :if :when :unless)
|
((or :if :when :unless)
|
||||||
(use-package-only-one (symbol-name head) args
|
(use-package-only-one (symbol-name head) args
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue