From a76d16730dfadaf11e7e186937a8624c9c9a4af1 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Tue, 13 Aug 2013 19:25:26 -0400 Subject: [PATCH] use lambda around deferred :config forms to compile them, fixes issue GitHub-reference: https://github.com/jwiegley/use-package/issues/30 --- lisp/use-package/use-package.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 59ecf93b278..72e287c376a 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -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) -- 2.39.2