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

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

[nongnu] elpa/iedit 7a3725cd04 267/301: Small optimizations


From: ELPA Syncer
Subject: [nongnu] elpa/iedit 7a3725cd04 267/301: Small optimizations
Date: Mon, 10 Jan 2022 22:59:09 -0500 (EST)

branch: elpa/iedit
commit 7a3725cd04853d88492515bbb3fd067482fcf3eb
Author: Victor Ren <yren@sonicwall.com>
Commit: Victor <victorhge@gmail.com>

    Small optimizations
---
 iedit-lib.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/iedit-lib.el b/iedit-lib.el
index 4a12f05428..5a2dfb9dcf 100644
--- a/iedit-lib.el
+++ b/iedit-lib.el
@@ -489,7 +489,7 @@ occurrence, it will abort Iedit mode."
       (when (not iedit-post-undo-hook-installed)
         (add-hook 'post-command-hook 'iedit-post-undo nil t)
         (setq iedit-post-undo-hook-installed t))
-    (when (not iedit-aborting)
+    (when (and (not iedit-updating) (not iedit-aborting))
       ;; before modification
       (if (null after)
           (if (or (< beg (overlay-start occurrence))
@@ -527,7 +527,7 @@ occurrence, it will abort Iedit mode."
 This part is running in `post-command-hook'. It combines
 `iedit-after-change-list' into one change and then call the third
 part to apply it to all the other occurrences."
-  (when iedit-after-change-list
+  (when (and (not iedit-updating) iedit-after-change-list)
        (let ((beg (buffer-size))
                  (end (buffer-size))
                  (change 0))



reply via email to

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