[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vlf 8ab1c6a 136/310: Disable undo and mark buffer as no
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vlf 8ab1c6a 136/310: Disable undo and mark buffer as not modified when invoking search or |
Date: |
Sat, 28 Nov 2020 00:33:02 -0500 (EST) |
branch: externals/vlf
commit 8ab1c6a4f2d70d35f646b3be65998a29dc60d4c0
Author: Andrey Kotlarski <m00naticus@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>
Disable undo and mark buffer as not modified when invoking search or
indexing.
---
vlf.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/vlf.el b/vlf.el
index 3fc0cf4..5a2ce16 100644
--- a/vlf.el
+++ b/vlf.el
@@ -451,6 +451,8 @@ BATCH-STEP is amount of overlap between successive chunks."
(- vlf-file-size vlf-end-pos)
vlf-start-pos)
vlf-file-size)))
+ (set-buffer-modified-p nil)
+ (buffer-disable-undo)
(unwind-protect
(catch 'end-of-file
(if backward
@@ -511,6 +513,7 @@ BATCH-STEP is amount of overlap between successive chunks."
(progress-reporter-update reporter
vlf-end-pos)))))
(progress-reporter-done reporter))
+ (set-buffer-modified-p nil)
(if backward
(vlf-goto-match match-chunk-start match-chunk-end
match-end-pos match-start-pos
@@ -550,8 +553,8 @@ successful. Return nil if nothing found."
(goto-char match-end)
(message "Moved to the %d match which is last"
(- count to-find)))
- (sit-for 0.1)
- (delete-overlay overlay)
+ (unwind-protect (sit-for 5)
+ (delete-overlay overlay))
t))))
(defun vlf-re-search-forward (regexp count)
@@ -677,7 +680,10 @@ Prematurely ending indexing will still show what's found
so far."
(pos (point)))
(vlf-beginning-of-file)
(goto-char (point-min))
+ (set-buffer-modified-p nil)
+ (buffer-disable-undo)
(unwind-protect (vlf-build-occur regexp)
+ (set-buffer-modified-p nil)
(vlf-move-to-chunk start-pos end-pos)
(goto-char pos))))
- [elpa] externals/vlf 86223ed 234/310: Fixes to hexl-mode integration., (continued)
- [elpa] externals/vlf 86223ed 234/310: Fixes to hexl-mode integration., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 9271f68 256/310: Add function to linearly search best batch size according to existing, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 0d2c096 258/310: Restore batch size and hexl mode in case of failed search or occur., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf b918791 265/310: Improve vlf performance with hexl-mode. Align batches to hexl-bits, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 2e9ff70 238/310: Enlarge default batch size but keep is small on initial load of remote, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf d85f3d4 246/310: Fix access to uninitialized measurements when tuning., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf ca56498 259/310: Change vlf-tune-get-optimal to optimize on total time of primitive, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 51d95ec 152/310: Add command to display batch starting from point., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 46e39a0 153/310: Version 1.0., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf d1af56d 167/310: Fix opening of files for GNU Emacs 23., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 8ab1c6a 136/310: Disable undo and mark buffer as not modified when invoking search or,
Stefan Monnier <=
- [elpa] externals/vlf bb482f0 173/310: Fix file size determination for symbolic links., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 9ffb968 172/310: Remove defadvice abort-if-file-too-large argument list so it works, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 386d856 179/310: Restore undo information after temporarily disabling it., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf deec75d 186/310: Enlarge minimum sample chunk for decoding size., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 516584e 187/310: Break VLF into components., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 27e3bbb 201/310: Reuse initial ediff session for all chunks., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 9343095 193/310: Fix installation interfile dependencies and fix setting of local, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 88dba8b 195/310: Remove unnecessary addition to load-path on compile., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf dd43af5 192/310: Manually decode and use several bytes buffer when loading chunk., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 98ddc3a 198/310: Add by batch Ediff functionality., Stefan Monnier, 2020/11/28