]> git.eshelyaron.com Git - emacs.git/commitdiff
use `eval-when-compile' for loading package at compile time, fixes issue
authorNoam Postavsky <npostavs@gmail.com>
Tue, 13 Aug 2013 23:13:16 +0000 (19:13 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Tue, 13 Aug 2013 23:14:22 +0000 (19:14 -0400)
GitHub-reference: https://github.com/jwiegley/use-package/issues/29

lisp/use-package/use-package.el

index 33c6e18a626a9b3f28d7cd027917077270b7b7e5..59ecf93b2783beda073545b6583cc19fc3638eef 100644 (file)
@@ -581,7 +581,7 @@ For full documentation. please see commentary.
                   (t
                    pkg-load-path)))
 
-         (when byte-compile-current-file
+         (eval-when-compile
            ,@defines-eval
            ,(if (stringp name)
                 `(load ,name t)