Merge pull request from npostavs/master

also check `byte-compile-current-file' for compile time loads, fixes issue https://github.com/jwiegley/use-package/issues/44
GitHub-reference: https://github.com/jwiegley/use-package/issues/45
This commit is contained in:
John Wiegley 2013-08-15 23:07:09 -07:00
commit a56244378f

View file

@ -582,10 +582,11 @@ For full documentation. please see commentary.
pkg-load-path)))
(eval-when-compile
(when (bound-and-true-p byte-compile-current-file)
,@defines-eval
,(if (stringp name)
`(load ,name t)
`(require ',name nil t)))
`(require ',name nil t))))
,(when (boundp 'el-get-sources)
(require 'el-get)