[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit df6c2ad919 017/301: fix search to use regexp-quote w
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit df6c2ad919 017/301: fix search to use regexp-quote when needed |
Date: |
Mon, 10 Jan 2022 22:58:46 -0500 (EST) |
branch: elpa/iedit
commit df6c2ad9195b87ea8e6c2a70943745ab038d6969
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>
fix search to use regexp-quote when needed
---
iedit.el | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/iedit.el b/iedit.el
index f710989ab7..5b9ae9971a 100644
--- a/iedit.el
+++ b/iedit.el
@@ -270,12 +270,17 @@ Commands:
(cond ((and arg iedit-last-occurrence-in-history)
(setq occurrence iedit-last-occurrence-in-history))
((and transient-mark-mode mark-active (not (equal (mark) (point))))
- (setq occurrence (buffer-substring-no-properties (mark) (point))))
+ (setq occurrence (regexp-quote (buffer-substring-no-properties
+ (mark) (point)))))
((and isearch-mode (not (string= isearch-string "")))
- (setq occurrence (buffer-substring-no-properties (point)
isearch-other-end))
+ (setq occurrence (funcall (if isearch-regexp
+ 'eval
+ 'regexp-quote)
+ (buffer-substring-no-properties
+ (point) isearch-other-end)))
(isearch-exit))
((and iedit-current-symbol-default (current-word t))
- (setq occurrence (current-word))
+ (setq occurrence (regexp-quote (current-word)))
(when iedit-only-at-symbol-boundaries
(setq occurrence (concat "\\_<" (regexp-quote occurrence)
"\\_>"))))
(t (error "No candidate of the occurrence, cannot enable iedit
mode.")))
- [nongnu] elpa/iedit c4091203ea 033/301: Merge pull request #3 from lewang/master, (continued)
- [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
- [nongnu] elpa/iedit 9b3aaa8f21 037/301: Fix occurrence from history does not exist problem, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b9ebb768b7 190/301: Merge pull request #60 from danrharms/issue-59-hotfix, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f7b2d60989 167/301: Make occurrence string the latest kill in the kill ring, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c25992ef7f 199/301: Fix doc strings, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 19f35aa1a0 172/301: Change the default key binding for `iedit-rectangle-mode' to c-x-r-ret, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4864e17126 010/301: Merge remote-tracking branch 'tsdh/master', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit fc71952cf9 014/301: Boolean `t', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit df6c2ad919 017/301: fix search to use regexp-quote when needed,
ELPA Syncer <=
- [nongnu] elpa/iedit 30971294b2 071/301: Remove a limitation of empty occurrence string, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit df9e958703 082/301: Add more short-cut to iedit on function, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 06fac017b4 087/301: explain what "quite different" means in rectangle context in README, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 1d32922c04 089/301: Run after-change-functions hook for every occurrence, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c935255053 083/301: minor change, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d29bf65e5e 096/301: Do not update mode line when buffering modification, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 1c410fc2b8 101/301: Fix iedit-number-occurrences with conjointed occurrences problem, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 73a5884b4c 126/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b4c736225f 114/301: Merge pull request #18 from lewang/lewang-use-real-face, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 8ff86b768d 115/301: Replace "(set-mark nil)" with (setq mark-active nil)", ELPA Syncer, 2022/01/10