]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix to :ensure normalization
authorJohn Wiegley <johnw@newartisans.com>
Sun, 15 Mar 2015 07:21:40 +0000 (02:21 -0500)
committerJohn Wiegley <johnw@newartisans.com>
Sun, 15 Mar 2015 07:21:40 +0000 (02:21 -0500)
lisp/use-package/use-package.el

index 72550d0d35dfbdab96188e76dcecfcb6b52ed41a..7cdd01d07b8ec953671226e35b926d767dac8976 100644 (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