[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vlf fd9c258 096/310: Use permanent buffer local write h
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vlf fd9c258 096/310: Use permanent buffer local write hook and update README. |
Date: |
Sat, 28 Nov 2020 00:32:54 -0500 (EST) |
branch: externals/vlf
commit fd9c258fc80e1a94498af58b064f596fe2723d23
Author: Andrey Kotlarski <m00naticus@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>
Use permanent buffer local write hook and update README.
---
README.org | 6 ++----
vlfi.el | 3 ++-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/README.org b/README.org
index 75160e4..034ca4e 100644
--- a/README.org
+++ b/README.org
@@ -49,10 +49,8 @@ example you can directly press digits to enter prefix
arguments.
** Changing major mode
-You can temporarily change major mode to whatever you like. Just
-*don't save*! Turn to *vlfi-edit-mode* first (may need to mark buffer
-as modified if needed). And you can return to *vlfi-mode* too if you
-haven't changed anything.
+You can temporarily change major mode to whatever you like. Saving
+will insert contents as intended. You can return to *vlfi-mode* too.
* Detail usage
diff --git a/vlfi.el b/vlfi.el
index e2f3e4b..2fb8ae0 100644
--- a/vlfi.el
+++ b/vlfi.el
@@ -76,7 +76,8 @@
(setq buffer-read-only t)
(set-buffer-modified-p nil)
(buffer-disable-undo)
- (add-hook 'write-contents-functions 'vlfi-write)
+ (make-local-variable 'write-file-functions)
+ (add-hook 'write-file-functions 'vlfi-write)
(make-local-variable 'revert-buffer-function)
(setq revert-buffer-function 'vlfi-revert)
(make-local-variable 'vlfi-batch-size)
- [elpa] externals/vlf 0610822 046/310: Make saving with change of size correct., (continued)
- [elpa] externals/vlf 0610822 046/310: Make saving with change of size correct., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf b52ca6c 063/310: Don't change encoding for edited chunk, leave it to the user in case, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf a31be70 076/310: Update README and bump version., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf ca8ba42 077/310: Fix position handling to correctly deal with multibyte characters., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 5aef3e1 078/310: Update file size changes more lazily., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf ba439de 083/310: Initial generation of vlfi-occur results., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 83eb8a5 080/310: Fixes for GNU Emacs 23., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 70719b0 089/310: Add vlfi-occur-show command for showing match but still staying in, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf a5fec57 090/310: Mostly documentation and commentary added., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf fbc3a37 094/310: Add tip for ability to change major mode and more section hierarchy., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf fd9c258 096/310: Use permanent buffer local write hook and update README.,
Stefan Monnier <=
- [elpa] externals/vlf fbe0814 097/310: Fix occur indexing not to skip last chunk., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 28255a2 098/310: Correctly print MB (for older emacsen)., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf ca13bea 101/310: Try utf-8 and if not successful, auto detect when adjusting chunk for, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf ae775f8 107/310: Extend vlfi-goto-line to count lines from the end with negative, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 36d2ed4 109/310: Update README., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 3c2fb6b 111/310: Merge branch 'master' into chunk-opt2, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf a0b8d5f 115/310: Merge pull request #3 from danlamanna/master, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 8ed9192 117/310: Review fixes:, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 298d8f5 118/310: Keep track of current batch encoded size and allow fluctuation when, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 563d9ca 119/310: Fix vlfi-revert to revert on user confirmation., Stefan Monnier, 2020/11/28