core-lib: let-bind package-name in after!

This commit is contained in:
Henrik Lissner 2017-01-28 02:04:16 -05:00
parent b6d1d61496
commit d7db99a1ef

View File

@ -16,7 +16,9 @@ during compilation."
'progn
(message "after: cannot find %s" feature)
'with-no-warnings)
(with-eval-after-load ',feature ,@forms)))
(with-eval-after-load ',feature
(let ((package-name ',feature))
,@forms))))
(defmacro add-hook! (hook &rest func-or-forms)
"A convenience macro for `add-hook'.