use lambda around deferred :config forms to compile them, fixes issue
GitHub-reference: https://github.com/jwiegley/use-package/issues/30
This commit is contained in:
parent
ac0c9633bc
commit
a76d16730d
1 changed files with 6 additions and 6 deletions
|
@ -637,12 +637,12 @@ For full documentation. please see commentary.
|
||||||
,init-body
|
,init-body
|
||||||
,(unless (null config-body)
|
,(unless (null config-body)
|
||||||
`(eval-after-load ,name-string
|
`(eval-after-load ,name-string
|
||||||
(quote
|
`(,(lambda ()
|
||||||
(if ,requires-test
|
(if ,requires-test
|
||||||
,(macroexpand-all
|
,(macroexpand-all
|
||||||
`(with-elapsed-timer
|
`(with-elapsed-timer
|
||||||
,(format "Configuring package %s" name-string)
|
,(format "Configuring package %s" name-string)
|
||||||
,config-body))))))
|
,config-body)))))))
|
||||||
t))
|
t))
|
||||||
`(if (and ,(or predicate t)
|
`(if (and ,(or predicate t)
|
||||||
,requires-test)
|
,requires-test)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue