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:
@@ -637,12 +637,12 @@ For full documentation. please see commentary.
|
||||
,init-body
|
||||
,(unless (null config-body)
|
||||
`(eval-after-load ,name-string
|
||||
(quote
|
||||
(if ,requires-test
|
||||
,(macroexpand-all
|
||||
`(with-elapsed-timer
|
||||
,(format "Configuring package %s" name-string)
|
||||
,config-body))))))
|
||||
`(,(lambda ()
|
||||
(if ,requires-test
|
||||
,(macroexpand-all
|
||||
`(with-elapsed-timer
|
||||
,(format "Configuring package %s" name-string)
|
||||
,config-body)))))))
|
||||
t))
|
||||
`(if (and ,(or predicate t)
|
||||
,requires-test)
|
||||
|
||||
Reference in New Issue
Block a user