From: Noam Postavsky Date: Tue, 13 Aug 2013 23:13:16 +0000 (-0400) Subject: use `eval-when-compile' for loading package at compile time, fixes issue X-Git-Tag: emacs-29.0.90~1306^2~15^2~447^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ac0c9633bc9c1451f3c6fa0c3fee1f5956c732aa;p=emacs.git use `eval-when-compile' for loading package at compile time, fixes issue GitHub-reference: https://github.com/jwiegley/use-package/issues/29 --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 33c6e18a626..59ecf93b278 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -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)