branch: externals/vlf
commit 2ac3e7d57757ff5f72ce1c7b0a0ea5b57fe68574
Author: Andrey Kotlarski <[email protected]>
Commit: Andrey Kotlarski <[email protected]>

    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