]> git.eshelyaron.com Git - emacs.git/commitdiff
pass name (not name-string) to eval-after-load
authorNoam Postavsky <npostavs@gmail.com>
Mon, 16 Sep 2013 17:59:16 +0000 (13:59 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 16 Sep 2013 17:59:16 +0000 (13:59 -0400)
Fixes https://github.com/jwiegley/use-package/issues/52: the :config block would be triggered when loading a config
file with the same name as the package and again when loading the
package itself.

lisp/use-package/use-package.el

index 1e3efd9045bf7fefb0ceefc17137391a2e66c832..d817db119a94e70e056f2a03c6c44b4f1581622d 100644 (file)
@@ -637,7 +637,7 @@ For full documentation. please see commentary.
                    ,@form
                    ,init-body
                    ,(unless (null config-body)
-                      `(eval-after-load ,name-string
+                      `(eval-after-load ,(if (stringp name) name `',name)
                          `(,(lambda ()
                               (if ,requires-test
                                   ,(macroexpand-all