]> git.eshelyaron.com Git - emacs.git/commitdiff
Using :load-path without also using :ensure now implies :ensure nil
authorJohn Wiegley <johnw@newartisans.com>
Thu, 30 Nov 2017 06:10:01 +0000 (22:10 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Thu, 30 Nov 2017 06:12:19 +0000 (22:12 -0800)
Fixes https://github.com/jwiegley/use-package/issues/190

etc/USE-PACKAGE-NEWS
lisp/use-package/use-package.el

index a4f20070e6a7dbe627731977d2c7283da1ad3dd3..b0265fa551582e3ca66ff4f85dabe560539a3e82 100644 (file)
@@ -27,6 +27,7 @@
 - Support multiple symbols passed to `:after`, and a mini-DSL using `:all` and
   `:any`.
 - `:mode` and `:interpreter` can now accept `(rx ...)` forms.
+- Using `:load-path` without also using `:ensure` now implies `:ensure nil`.
 - `:bind (:map foo-map ...)` now defers binding in the map until the package
   has been loaded.
 - Print key bindings for keymaps in `describe-personal-keybindings`.
index 5eb2b23936d5d533edaf188189dbc4ea1133fc46..b07f205adc7c7e4827225ab917751d44c4271db2 100644 (file)
@@ -1764,6 +1764,9 @@ this file.  Usage:
                                       (not (memq :defer args)))
                                  (append args '(:demand t))
                                args)))
+                  (when (and (plist-member args* :load-path)
+                             (not (plist-member args* :ensure)))
+                    (plist-put args* :ensure nil))
                   (unless (plist-member args* :init)
                     (plist-put args* :init nil))
                   (unless (plist-member args* :config)