branch: elpa/forth-mode
commit 08d891c90702eae8decc2213e533fe38057bbad5
Author: Lars Brinkhoff <[email protected]>
Commit: Lars Brinkhoff <[email protected]>
Use LOCAL argument to add-hook.
---
forth-block-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/forth-block-mode.el b/forth-block-mode.el
index b81918fb0d..bb67c4a29b 100644
--- a/forth-block-mode.el
+++ b/forth-block-mode.el
@@ -89,8 +89,8 @@
:lighter " block"
(setq require-final-newline nil)
(forth-unblockify)
- (add-hook (make-local-variable 'before-save-hook) #'forth-blockify)
- (add-hook (make-local-variable 'after-save-hook) #'forth-unblockify)
+ (add-hook 'before-save-hook 'forth-blockify nil t)
+ (add-hook 'after-save-hook 'forth-unblockify nil t)
(add-to-list (make-local-variable 'before-change-functions)
#'forth-before-change)
(add-to-list (make-local-variable 'after-change-functions)