use `eval-when-compile' for loading package at compile time, fixes issue

GitHub-reference: https://github.com/jwiegley/use-package/issues/29
This commit is contained in:
Noam Postavsky 2013-08-13 19:13:16 -04:00
parent e481d97891
commit ac0c9633bc

View 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)