From 71f894fe78dc5ddb369ab387ece3d2255e11f07c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 15 Mar 2015 02:21:40 -0500 Subject: [PATCH] Fix to :ensure normalization --- lisp/use-package/use-package.el | 9 +++++---- 1 file 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 -- 2.39.2