[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit c274e6423b 200/301: Quit iedit mode if the number of
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit c274e6423b 200/301: Quit iedit mode if the number of occurrence is zero |
Date: |
Mon, 10 Jan 2022 22:59:02 -0500 (EST) |
branch: elpa/iedit
commit c274e6423bbe849fde5c412b6fbefe5cc771d171
Author: Victor Ren <victorhge@gmail.com>
Commit: Victor Ren <victorhge@gmail.com>
Quit iedit mode if the number of occurrence is zero
---
iedit.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/iedit.el b/iedit.el
index 2d48e7c57f..1051596b14 100644
--- a/iedit.el
+++ b/iedit.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2016-06-10 20:44:12 Victor Ren>
+;; Time-stamp: <2016-06-10 22:29:42 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region simultaneous refactoring
;; Version: 0.97
@@ -156,8 +156,7 @@ An example of how to use this variable:
(if (memq prefix-char '(?$ ?% ?@ ?*))
(buffer-substring-no-properties (1- (car bound))
(cdr bound))
(buffer-substring-no-properties (car bound) (cdr
bound))))))))
-
-")
+'$%@*' will be included in the occurrences in perl mode")
(make-variable-buffer-local 'iedit-mode)
(make-variable-buffer-local 'iedit-only-complete-symbol-local)
@@ -393,7 +392,10 @@ Keymap used within overlays:
(setq mark-active nil)
(run-hooks 'deactivate-mark-hook)
(setq iedit-initial-string-local occurrence)
- (iedit-start (iedit-regexp-quote occurrence) beg end))))
+ (iedit-start (iedit-regexp-quote occurrence) beg end)
+ (unless iedit-occurrences-overlays
+ ;; (message "No matches found for %s" (iedit-regexp-quote occurrence))
+ (iedit-done)))))
(defun iedit-mode-from-isearch (regexp)
"Start Iedit mode using last search string as the regexp."
@@ -419,7 +421,7 @@ Keymap used within overlays:
(iedit-start regexp (point-min) (point-max))
;; TODO: reconsider how to avoid the loop in iedit-same-length
(cond ((not iedit-occurrences-overlays)
- (message "No matches found")
+ (message "No matches found for %s" regexp)
(iedit-done))
((not (iedit-same-length))
(message "Matches are not the same length.")
- [nongnu] elpa/iedit 466ab11996 119/301: Add APIs for adding occurrence overlay, (continued)
- [nongnu] elpa/iedit 466ab11996 119/301: Add APIs for adding occurrence overlay, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3cf5e8f806 111/301: Minor update README.org to reflect modulized change, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit a089103fa0 110/301: Fix typoes, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 66ca4f9595 125/301: Merge pull request #21 from lewang/fix-overlay-at-eob, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 541eab7b6b 108/301: Add document for iedit-rectangle-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4b1416f83f 131/301: refactor out common test code in "test-util", ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ceb729863b 153/301: Update iedit-lib.el, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b3ebd84769 137/301: Merge pull request #29 from jorgenschaefer/elpa-package, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 27de77eda5 133/301: add test to ensure padding of EOL happens to make up rectangle, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7a35f3bd06 157/301: Add overlay priority option, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c274e6423b 200/301: Quit iedit mode if the number of occurrence is zero,
ELPA Syncer <=
- [nongnu] elpa/iedit 8c2316693a 198/301: Fix bug: C-u M-p does not work, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c7abe595b4 159/301: Remove confusing messages "Locate the fist occurrence", ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 2fe78a5ec9 201/301: Remove two confusing options, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f707cce0b8 193/301: Remove the key binding to M-[, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f9f87a0dd9 212/301: Add key bindings for iedit-quit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b4c7e41049 209/301: More doc for iedit-switch-to-mc-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 18b99c1fb4 169/301: Fix compile warning and test case, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit bd3fd44691 173/301: Added the default value for iedit-replace-occurrences, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b73b977839 204/301: Merge branch 'default-occurrence', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 6e6d4bc478 151/301: Merge branch 'master' of https://github.com/mbneedham/iedit, ELPA Syncer, 2022/01/10