Skip to content

Commit

Permalink
Merge pull request #13 from PhilHudson/macroexpand
Browse files Browse the repository at this point in the history
Macroexpand quoted eval-after-load block early
  • Loading branch information
jwiegley committed Jan 24, 2013
2 parents a71670c + 1106efe commit 7b2ce57
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions use-package.el
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,12 @@ For full documentation. please see commentary.
,init-body
,(unless (null config-body)
`(eval-after-load ,name-string
'(if ,requires-test
(with-elapsed-timer
,(format "Configuring package %s" name-string)
,config-body))))
(quote
(if ,requires-test
,(macroexpand-all
`(with-elapsed-timer
,(format "Configuring package %s" name-string)
,config-body))))))
t))
`(if (and ,(or predicate t)
,requires-test)
Expand Down

0 comments on commit 7b2ce57

Please sign in to comment.