emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/forth-mode 08d891c907 026/153: Use LOCAL argument to add-h


From: ELPA Syncer
Subject: [nongnu] elpa/forth-mode 08d891c907 026/153: Use LOCAL argument to add-hook.
Date: Sat, 29 Jan 2022 08:02:14 -0500 (EST)

branch: elpa/forth-mode
commit 08d891c90702eae8decc2213e533fe38057bbad5
Author: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Commit: Lars Brinkhoff <lars.brinkhoff@delphi.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]