]> git.eshelyaron.com Git - emacs.git/commitdiff
Always use `load' when loading for the sake of compilation
authorJohn Wiegley <johnw@newartisans.com>
Fri, 1 Dec 2017 08:45:04 +0000 (00:45 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 1 Dec 2017 08:45:04 +0000 (00:45 -0800)
lisp/use-package/use-package.el

index 2ab0135e753fb1911b1798e5ba64857ab885f9c6..044d79d4a957ea561b81295f94799b6c9a2ea15a 100644 (file)
@@ -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