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.
This commit is contained in:
Noam Postavsky 2013-09-16 13:59:16 -04:00
parent 6efc084cdf
commit c6d79d2cb4

View 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