]> git.eshelyaron.com Git - emacs.git/commitdiff
A final fix to :ensure + :load-path
authorJohn Wiegley <johnw@newartisans.com>
Thu, 30 Nov 2017 20:38:13 +0000 (12:38 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Thu, 30 Nov 2017 20:38:13 +0000 (12:38 -0800)
Fixes https://github.com/jwiegley/use-package/issues/190

lisp/use-package/use-package.el

index 0d86cc00e99f4bf62d154d0543b653cef98c9bbd..748074ad115791783479a47cc3b6e379ef0d42f8 100644 (file)
@@ -1734,6 +1734,7 @@ this file.  Usage:
   (declare (indent 1))
   (unless (member :disabled args)
     (let ((name-symbol (if (stringp name) (intern name) name))
+          (orig-args args)
           (args (use-package-normalize-plist name args)))
       (dolist (spec use-package-defaults)
         (setq args (use-package-sort-keywords
@@ -1769,7 +1770,8 @@ this file.  Usage:
                                  (append args '(:demand t))
                                args)))
                   (when (and use-package-always-ensure
-                             (plist-member args* :load-path))
+                             (plist-member args* :load-path)
+                             (not (plist-member orig-args :ensure)))
                     (plist-put args* :ensure nil))
                   (unless (plist-member args* :init)
                     (plist-put args* :init nil))