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

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

[elpa] externals/vlf c4f87f9 048/310: Move save interception to vlfi-mod


From: Stefan Monnier
Subject: [elpa] externals/vlf c4f87f9 048/310: Move save interception to vlfi-mode.
Date: Sat, 28 Nov 2020 00:32:44 -0500 (EST)

branch: externals/vlf
commit c4f87f9ec768fb40129cd48323071f87c7921d31
Author: Andrey Kotlarski <m00naticus@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>

    Move save interception to vlfi-mode.
---
 vlfi.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlfi.el b/vlfi.el
index d6da88b..e859fd4 100644
--- a/vlfi.el
+++ b/vlfi.el
@@ -73,6 +73,7 @@
   (setq buffer-read-only t)
   (set-buffer-modified-p nil)
   (buffer-disable-undo)
+  (add-hook 'write-contents-functions 'vlfi-write)
   (make-local-variable 'vlfi-batch-size)
   (put 'vlfi-batch-size 'permanent-local t)
   (make-local-variable 'vlfi-start-pos)
@@ -395,7 +396,6 @@ Search is performed chunk by chunk in `vlfi-batch-size' 
memory."
   "Major mode for editing large file chunks."
   (setq buffer-read-only nil)
   (buffer-enable-undo)
-  (add-hook 'write-contents-functions 'vlfi-write)
   (message (substitute-command-keys
             "Editing: Type \\[vlfi-write] to write chunk \
 or \\[vlfi-discard-edit] to discard changes.")))



reply via email to

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