summaryrefslogtreecommitdiff
path: root/lisp/use-package
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2017-12-01 00:45:04 -0800
committerJohn Wiegley <johnw@newartisans.com>2017-12-01 00:45:04 -0800
commit5f1e8b6b72cdd3abca0a59d22608146b67d1ef32 (patch)
treeec34f5333d6b07738509c162b661e5cbbb3ef0e7 /lisp/use-package
parent669e8527fb28d51dc0b12ab0dfa2c749ab549fec (diff)
downloademacs-5f1e8b6b72cdd3abca0a59d22608146b67d1ef32.tar.gz
emacs-5f1e8b6b72cdd3abca0a59d22608146b67d1ef32.tar.bz2
emacs-5f1e8b6b72cdd3abca0a59d22608146b67d1ef32.zip
Always use `load' when loading for the sake of compilation
Diffstat (limited to 'lisp/use-package')
-rw-r--r--lisp/use-package/use-package.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el
index 2ab0135e753..044d79d4a95 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -1763,7 +1763,9 @@ this file. Usage:
,(if (eq use-package-verbose 'debug)
`(message "Compiling package %s" ',name-symbol))
,(unless (plist-get args :no-require)
- (use-package-load-name name)))))))
+ `(load ,(if (stringp name)
+ name
+ (symbol-name name)) nil t)))))))
(let ((body
(macroexp-progn