From: Noam Postavsky Date: Mon, 16 Sep 2013 17:59:16 +0000 (-0400) Subject: pass name (not name-string) to eval-after-load X-Git-Tag: emacs-29.0.90~1306^2~15^2~442^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c6d79d2cb4;p=emacs.git 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. --- 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