From c6d79d2cb40bd141f62eaca6dca47fb2e8e6943f Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Mon, 16 Sep 2013 13:59:16 -0400 Subject: [PATCH] pass name (not name-string) to eval-after-load 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 1e3efd9045b..d817db119a9 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -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 -- 2.39.2