[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 7ed8e04557 021/301: Optmize iedit-hide-unmatched-lin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 7ed8e04557 021/301: Optmize iedit-hide-unmatched-lines |
Date: |
Mon, 10 Jan 2022 22:58:46 -0500 (EST) |
branch: elpa/iedit
commit 7ed8e045579dee626f3bc8c6131959c40efc1e31
Author: Victor Ren <victorhge@gmail.com>
Commit: Victor Ren <victorhge@gmail.com>
Optmize iedit-hide-unmatched-lines
---
iedit.el | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/iedit.el b/iedit.el
index a1759457c2..7b6b3650f4 100644
--- a/iedit.el
+++ b/iedit.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2012-01-21 11:52:29 Victor Ren>
+;; Time-stamp: <2012-01-21 14:12:53 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region replace simultaneous
;; Version: 0.91
@@ -329,15 +329,12 @@ Commands:
(unmatched-lines nil))
(save-excursion
(dolist (overlay iedit-occurrences-overlays)
- (let ((match-start (overlay-start overlay))
- (match-end (overlay-end overlay)))
- (goto-char match-start)
- (if (> (line-beginning-position) (1+ prev-occurrence-end))
- (let ((unmatch-start (1+ prev-occurrence-end))
- (unmatch-end (1- (line-beginning-position))))
- (push (list unmatch-start unmatch-end) unmatched-lines)))
- (goto-char match-end)
- (setq prev-occurrence-end (line-end-position))))
+ (goto-char (overlay-start overlay))
+ (let ((line-beginning (line-beginning-position)))
+ (if (> line-beginning (1+ prev-occurrence-end))
+ (push (list (1+ prev-occurrence-end) (1- line-beginning))
unmatched-lines)))
+ (goto-char (overlay-end overlay))
+ (setq prev-occurrence-end (line-end-position)))
(if (< prev-occurrence-end (point-max))
(push (list (1+ prev-occurrence-end) (point-max)) unmatched-lines))
(when unmatched-lines
- [nongnu] elpa/iedit da0a24701b 005/301: Add option to match only complete words, not inside words, (continued)
- [nongnu] elpa/iedit da0a24701b 005/301: Add option to match only complete words, not inside words, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 1b3672d28a 069/301: Init, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 8e87f353fe 006/301: add me as a contributor, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 59ce7fa759 091/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 307262b25a 093/301: (add-hook 'change-major-mode-hook 'iedit-done nil t), ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d2a6e16977 055/301: Update commentary with rectangle support, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 76eeb87b95 102/301: Add feekback message for iedit-restrict-function, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 29869ebed0 118/301: Add buffer local variable iedit-occurrence-keymap, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ec765ee0c4 018/301: implement interactive string-rectangle mode with universal argument and region selected, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d4b9fd53ce 019/301: don't call hooks when there is only text properites change, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7ed8e04557 021/301: Optmize iedit-hide-unmatched-lines,
ELPA Syncer <=
- [nongnu] elpa/iedit e6f558539e 025/301: fix org-mode text-property compatibility (use insert-and-inherit), ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 039c0e23ab 023/301: Postpone iedit-done after commands are excuted., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c5a0d4de84 028/301: fix zero-width rectangle insertion, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 13ecba138a 026/301: Merge branch 'upstream-master', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 1d070b7d36 029/301: move init code for iedit-mode-map inside defvar, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit a75c44645a 031/301: fix bug with autopair and iedit-rect, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 20c1075948 032/301: remove conditions on setting `iedit-before-modification-string'., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c4091203ea 033/301: Merge pull request #3 from lewang/master, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b81b9d6025 034/301: Clean code., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 17ce97381b 035/301: Clean up code, ELPA Syncer, 2022/01/10