[Top][All Lists]

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

[elpa] master aada211: [el-search] Don't try to kill modified buffers

From: Michael Heerdegen
Subject: [elpa] master aada211: [el-search] Don't try to kill modified buffers
Date: Sun, 4 Nov 2018 11:20:11 -0500 (EST)

branch: master
commit aada211d709ff4fcb85276482101ea567d3fcb1a
Author: Michael Heerdegen <address@hidden>
Commit: Michael Heerdegen <address@hidden>

    [el-search] Don't try to kill modified buffers
    This fixes a problem introduced by 1d2bbf66 "Improve working of
    `el-search-kill-left-over-search-buffers'": We still need to check
    whether the buffer to be killed has been modified by
    'el-search-query-replace' with 'el-search-auto-save-buffers' off.
    Bump version to 1.7.13.
    * packages/el-search/el-search.el
    (el-search-kill-left-over-search-buffers): Exclude modified buffers
    from killing.
 packages/el-search/el-search.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/packages/el-search/el-search.el b/packages/el-search/el-search.el
index cb8cf63..98aed80 100644
--- a/packages/el-search/el-search.el
+++ b/packages/el-search/el-search.el
@@ -7,7 +7,7 @@
 ;; Created: 29 Jul 2015
 ;; Keywords: lisp
 ;; Compatibility: GNU Emacs 25
-;; Version: 1.7.12
+;; Version: 1.7.13
 ;; Package-Requires: ((emacs "25") (stream "2.2.4") (cl-print "1.0"))
@@ -1286,7 +1286,8 @@ the cursor) are not killed."
   (dolist (buffer (buffer-list))
     (when (with-current-buffer buffer el-search--temp-buffer-flag)
-      (unless (or (el-search--search-buffer-p buffer)
+      (unless (or (buffer-modified-p buffer) ; e.g. modified by 
el-s-query-replace and auto-save off
+                  (el-search--search-buffer-p buffer)
                   (with-current-buffer buffer (el-search--pending-search-p)))
         (kill-buffer buffer)))))

reply via email to

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