]> git.eshelyaron.com Git - emacs.git/commitdiff
use lambda around deferred :config forms to compile them, fixes issue
authorNoam Postavsky <npostavs@gmail.com>
Tue, 13 Aug 2013 23:25:26 +0000 (19:25 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Tue, 13 Aug 2013 23:25:26 +0000 (19:25 -0400)
GitHub-reference: https://github.com/jwiegley/use-package/issues/30

lisp/use-package/use-package.el

index 59ecf93b2783beda073545b6583cc19fc3638eef..72e287c376aa3e4c6b23bddcc255c8e92c86620c 100644 (file)
@@ -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)