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

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

[elpa] externals/hyperbole 374086f 1/5: Set hook to be local to kotl-mod


From: ELPA Syncer
Subject: [elpa] externals/hyperbole 374086f 1/5: Set hook to be local to kotl-mode (#83)
Date: Thu, 13 May 2021 20:57:11 -0400 (EDT)

branch: externals/hyperbole
commit 374086f2d9f1d792f928b6ab82acf494499a2edb
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: GitHub <noreply@github.com>

    Set hook to be local to kotl-mode (#83)
---
 ChangeLog         | 4 ++++
 kotl/kotl-mode.el | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index cb0bd50..ecf7b95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-05-13  Mats Lidell  <matsl@gnu.org>
+
+* kotl/kotl-mode.el (kotl-mode): Set hook to be local to buffer.
+
 2021-05-12  Mats Lidell  <matsl@gnu.org>
 
 * kotl/kotl-mode.el (kotl-mode): Use write-file-functions
diff --git a/kotl/kotl-mode.el b/kotl/kotl-mode.el
index 361071f..869942d 100644
--- a/kotl/kotl-mode.el
+++ b/kotl/kotl-mode.el
@@ -87,7 +87,7 @@ It provides the following keys:
   ;;
   ;; Ensure that outline structure data is saved when save-buffer is called
   ;; from save-some-buffers, {C-x s}.
-  (add-hook 'write-file-functions #'kotl-mode:update-buffer)
+  (add-hook 'write-file-functions #'kotl-mode:update-buffer nil 'local)
   (mapc #'make-local-variable
        '(kotl-previous-mode indent-line-function indent-region-function
                             outline-isearch-open-invisible-function



reply via email to

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