From: John Wiegley Date: Sun, 15 Mar 2015 07:21:40 +0000 (-0500) Subject: Fix to :ensure normalization X-Git-Tag: emacs-29.0.90~1306^2~15^2~396 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=71f894fe78;p=emacs.git Fix to :ensure normalization --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 72550d0d35d..7cdd01d07b8 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -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