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

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

[nongnu] elpa/iedit 9c08a48c88 281/301: Remove the workaround for slow c


From: ELPA Syncer
Subject: [nongnu] elpa/iedit 9c08a48c88 281/301: Remove the workaround for slow c-before-change
Date: Mon, 10 Jan 2022 22:59:10 -0500 (EST)

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

    Remove the workaround for slow c-before-change
    
    It is enduable now, although it is still lag when there are a lot of
    occurrences.  Some mode need the notices of all the change.
---
 iedit-lib.el | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/iedit-lib.el b/iedit-lib.el
index 33221d3bde..52c7f5b999 100755
--- a/iedit-lib.el
+++ b/iedit-lib.el
@@ -569,10 +569,7 @@ part to apply it to all the other occurrences."
 Apply the change to all the other occurrences. "
   (let ((iedit-updating t)
         (offset (- beg (overlay-start occurrence)))
-        (value (buffer-substring-no-properties beg end))
-               ;; c-before-change is really slow. It is safe to skip change 
functions
-               ;; for all the other occurrences
-               (inhibit-modification-hooks (memq #'c-before-change 
before-change-functions)))
+        (value (buffer-substring-no-properties beg end)))
     (save-excursion
          (iedit-move-conjoined-overlays occurrence)
          (when (/= beg end)
@@ -599,10 +596,7 @@ Apply the change to all the other occurrences. "
                              (if (= 0 offset)
                                   (capitalize value)
                                value))))))
-          (iedit-move-conjoined-overlays another-occurrence))))
-       (when inhibit-modification-hooks
-         ;; run the after change functions only once. It seems OK for c-mode
-         (run-hook-with-args 'after-change-functions beg end change))))
+          (iedit-move-conjoined-overlays another-occurrence))))))
 
 (defun iedit-next-occurrence ()
   "Move forward to the next occurrence in the `iedit'.



reply via email to

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