[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'.
- [nongnu] elpa/iedit 97ad9d0600 254/301: removed downcasing the from-string in iedit-lib.el/iedit-replace-occurrences to allow case sensitivity., (continued)
- [nongnu] elpa/iedit 97ad9d0600 254/301: removed downcasing the from-string in iedit-lib.el/iedit-replace-occurrences to allow case sensitivity., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7a3725cd04 267/301: Small optimizations, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 42654ba7ed 266/301: iedit-rect.el: Don't set iedit-initial-string-local, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d335d6842a 183/301: Check if the default keybinding of iedit-mode is taken, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit e575cbf569 256/301: Allow adding a incremented number in each occurence, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 796ee5298d 237/301: fix the key conflict with yas-minor-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit e1decb37e5 245/301: Fix verion numbers, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f09b675c67 249/301: Add an option 'iedit-auto-narrow', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 44601e01fa 269/301: fix an issue with electric pair, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3f9eed229e 232/301: Allow custom mode-line, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 9c08a48c88 281/301: Remove the workaround for slow c-before-change,
ELPA Syncer <=
- [nongnu] elpa/iedit 01767ddca3 258/301: Fix a failed testcase in batch mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7e507b370b 255/301: Set the FIXEDCASE argument of replace-match in iedit-replace-occurrences to T to allow preserving case., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 745ea6f812 239/301: Rename iedit-toggle-unmatched-lines-visible to iedit-show/hide-unmatched-lines, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit dfed75064e 285/301: Save and restore `line-move-ignore-invisible', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c448864424 216/301: Remove iedit-unmatched-lines-invisible-default, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 5fdf89edc9 238/301: Fix switch to mc mode problem, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit de54411d0e 220/301: Detect markup tag only if region inactive, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ac51555341 282/301: New feature: ignore hidden occurrences, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 31986b640a 289/301: Take iedit-goto-first-occurrence back, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 5e7253c36e 274/301: Update documents and comments, ELPA Syncer, 2022/01/10