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

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

[elpa] externals/vlf 2ac3e7d 146/310: Fix prematurely ending search/occu


From: Stefan Monnier
Subject: [elpa] externals/vlf 2ac3e7d 146/310: Fix prematurely ending search/occur not to ask for modified buffer
Date: Sat, 28 Nov 2020 00:33:04 -0500 (EST)

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

    Fix prematurely ending search/occur not to ask for modified buffer
    confirmation.
---
 vlf.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlf.el b/vlf.el
index 193dbf6..19d04b5 100644
--- a/vlf.el
+++ b/vlf.el
@@ -554,6 +554,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
@@ -841,6 +842,7 @@ Prematurely ending indexing will still show what's found so 
far."
                       last-line-pos (line-beginning-position))
                 (progress-reporter-update reporter vlf-end-pos))))
           (progress-reporter-done reporter))
+      (set-buffer-modified-p nil)
       (if (zerop total-matches)
           (progn (with-current-buffer occur-buffer
                    (set-buffer-modified-p nil))



reply via email to

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