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

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

[nongnu] elpa/iedit 46d5f65019 154/301: clean up old occurrences when ca


From: ELPA Syncer
Subject: [nongnu] elpa/iedit 46d5f65019 154/301: clean up old occurrences when calling from isearch
Date: Mon, 10 Jan 2022 22:58:58 -0500 (EST)

branch: elpa/iedit
commit 46d5f65019428ba928dd90f28bbbe0f6a5586714
Author: Mark Needham <mbneedham@gmail.com>
Commit: Mark Needham <mbneedham@gmail.com>

    clean up old occurrences when calling from isearch
    
    If iedit-mode-from-isearch is called when iedit is already active,
    it's possible to have overlays for two different patterns at the same time.
    This cleans up the old occurrences before making new ones.
---
 iedit.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/iedit.el b/iedit.el
index d2aef7f43c..0a4e953e16 100644
--- a/iedit.el
+++ b/iedit.el
@@ -362,6 +362,8 @@ Keymap used within overlays:
     (isearch-exit)
     (setq mark-active nil)
     (run-hooks 'deactivate-mark-hook)
+    (when iedit-mode
+      (iedit-cleanup))
     (iedit-start regexp (point-min) (point-max))
     ;; TODO: reconsider how to avoid the loop in iedit-same-length
     (cond ((not iedit-occurrences-overlays) 



reply via email to

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