From: John Wiegley Date: Thu, 30 Nov 2017 07:08:22 +0000 (-0800) Subject: Only add :ensure nil on :load-path if use-package-always-ensure is t X-Git-Tag: emacs-29.0.90~1306^2~15^2~222 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3cb64648fcbe9732a88f5f59ee4f9c20a723e863;p=emacs.git Only add :ensure nil on :load-path if use-package-always-ensure is t --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 8d44d37e0af..7a09a3be1b2 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -1765,7 +1765,8 @@ this file. Usage: (not (memq :defer args))) (append args '(:demand t)) args))) - (when (and (plist-member args* :load-path) + (when (and use-package-always-ensure + (plist-member args* :load-path) (not (plist-member args* :ensure))) (plist-put args* :ensure nil)) (unless (plist-member args* :init)