diff options
author | John Wiegley <johnw@newartisans.com> | 2015-03-15 02:21:40 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2015-03-15 02:21:40 -0500 |
commit | 71f894fe78dc5ddb369ab387ece3d2255e11f07c (patch) | |
tree | d28b16493bda3fd341e958fc749f21a60af25d42 /lisp | |
parent | a6edb081226f6e1331df0d679c4064c5ab09d95a (diff) | |
download | emacs-71f894fe78dc5ddb369ab387ece3d2255e11f07c.tar.gz emacs-71f894fe78dc5ddb369ab387ece3d2255e11f07c.tar.bz2 emacs-71f894fe78dc5ddb369ab387ece3d2255e11f07c.zip |
Fix to :ensure normalization
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/use-package/use-package.el | 9 |
1 files changed, 5 insertions, 4 deletions
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 |