From 99c73cea0b267e3e8c63b8d10969d0fca4e530bc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 29 Jul 2019 21:04:04 +0200 Subject: [PATCH] setq-hook!: don't append setq hooks Now settings can take effect in time for hooks that could see them. --- core/core-lib.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-lib.el b/core/core-lib.el index b962f489e..283e4ef32 100644 --- a/core/core-lib.el +++ b/core/core-lib.el @@ -343,7 +343,7 @@ If N and M = 1, there's no benefit to using this macro over `remove-hook'. ,(format "%s = %s" var (pp-to-string val)) (setq-local ,var ,val)) collect `(remove-hook ',hook #',fn) ; ensure set order - collect `(add-hook ',hook #',fn 'append)))) + collect `(add-hook ',hook #',fn)))) (defmacro unsetq-hook! (hooks &rest vars) "Unbind setq hooks on HOOKS for VARS.