1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 14:30:50 -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))) #'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