diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index f9bc5c2b32e..53c96ae1f6c 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -461,10 +461,12 @@ ,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)