mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
Merge pull request from syl20bnr/fix_hook_injection
Fix calls to run-hooks for :init and :config injected hooks GitHub-reference: https://github.com/jwiegley/use-package/issues/213
This commit is contained in:
commit
4502a5ecb1
1 changed files with 6 additions and 6 deletions
|
|
@ -181,16 +181,16 @@ ARGS is a list of forms, so `((foo))' if only `foo' is being called."
|
|||
(when body
|
||||
`((when ,(macroexp-progn
|
||||
(use-package-expand name-string (format "pre-%s hook" keyword)
|
||||
`(run-hook-with-args-until-failure
|
||||
',(intern (concat "use-package--" name-string
|
||||
"--pre-" keyword-name "-hook")))))
|
||||
`((run-hook-with-args-until-failure
|
||||
',(intern (concat "use-package--" name-string
|
||||
"--pre-" keyword-name "-hook"))))))
|
||||
,(macroexp-progn
|
||||
(use-package-expand name-string (format "%s" keyword) body))
|
||||
,(macroexp-progn
|
||||
(use-package-expand name-string (format "post-%s hook" keyword)
|
||||
`(run-hooks
|
||||
',(intern (concat "use-package--" name-string
|
||||
"--post-" keyword-name "-hook")))))))))))
|
||||
`((run-hooks
|
||||
',(intern (concat "use-package--" name-string
|
||||
"--post-" keyword-name "-hook"))))))))))))
|
||||
|
||||
(defun use-package--with-elapsed-timer (text body)
|
||||
"BODY is a list of forms, so `((foo))' if only `foo' is being called."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue