diff options
author | John Wiegley <johnw@newartisans.com> | 2019-07-16 11:29:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-16 11:29:12 -0700 |
commit | 165f2dd968b8de1e740710ce3e0a47376c8dbc5b (patch) | |
tree | 6b4fe6e237ab91cf72fc67f27cd6c3c78a8fb0b6 /lisp/use-package/use-package-core.el | |
parent | 97f0287e1968d3ccd802fe52a4dbca707babd7fa (diff) | |
parent | 20415fb9be8c7f0940c78aa163450109836344ec (diff) | |
download | emacs-165f2dd968b8de1e740710ce3e0a47376c8dbc5b.tar.gz emacs-165f2dd968b8de1e740710ce3e0a47376c8dbc5b.tar.bz2 emacs-165f2dd968b8de1e740710ce3e0a47376c8dbc5b.zip |
Use `require', not `load', when byte-compiling ()
Use `require', not `load', when byte-compiling
GitHub-reference: https://github.com/jwiegley/use-package/issues/783
Diffstat (limited to 'lisp/use-package/use-package-core.el')
-rw-r--r-- | lisp/use-package/use-package-core.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index 7b4d26ba2a3..db5e20f7ddf 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -651,7 +651,8 @@ extending any keys already present." ,(when (eq use-package-verbose 'debug) `(message ,(format "Compiling package %s" name-string))) ,(unless (plist-get args :no-require) - `(load ,name-string nil t))))))))) + `(unless (featurep ',name-symbol) + (load ,name-string nil t)))))))))) ;; Certain keywords imply :defer, if :demand was not specified. (when (and (not (plist-member args :demand)) |