1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Fix to :ensure normalization

This commit is contained in:
John Wiegley 2015-03-15 02:21:40 -05:00
parent a6edb08122
commit 71f894fe78

View file

@ -241,14 +241,15 @@ then the expanded macros do their job silently."
#'use-package-normalize-value)))
(:ensure
(use-package-only-one (symbol-name head) args
(if (null args)
t
(if (null args)
t
(use-package-only-one (symbol-name head) args
(lambda (label arg)
(if (symbolp arg)
arg
(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)
(use-package-only-one (symbol-name head) args