[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 7ab2509231 225/301: Expand iedit-regexp-quote with p
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 7ab2509231 225/301: Expand iedit-regexp-quote with passthrough |
Date: |
Mon, 10 Jan 2022 22:59:04 -0500 (EST) |
branch: elpa/iedit
commit 7ab250923183b974ed6d41fd88f5f03a918b2d8a
Author: Peder Stray <peder@inne.proxdynamics.com>
Commit: Peder Stray <peder@inne.proxdynamics.com>
Expand iedit-regexp-quote with passthrough
Add handling of 'regexp symbol to iedit-regexp-quote, and updte the
perl-mode example in iedit-default-occurrence-local to use it.
---
iedit.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/iedit.el b/iedit.el
index dbdf62c297..7372f90421 100644
--- a/iedit.el
+++ b/iedit.el
@@ -146,8 +146,8 @@ use this variable:
(prefix-char (char-after (1- (car bound)))))
(if (memq prefix-char '(?$ ?% ?@ ?*))
(progn
- (setq iedit-occurrence-type-local 'other)
- (buffer-substring-no-properties (1- (car bound))
(cdr bound)))
+ (setq iedit-occurrence-type-local 'regexp)
+ (concat (regexp-quote
(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.")
@@ -473,6 +473,7 @@ The candidate depends on the thing at point."
(cl-case iedit-occurrence-type-local
('symbol (concat "\\_<" (regexp-quote exp) "\\_>"))
('word (concat "\\<" (regexp-quote exp) "\\>"))
+ ('regexp exp)
( t (regexp-quote exp))))
(defun iedit-mark-sgml-pair ()
- [nongnu] elpa/iedit 83c037d678 156/301: Fix infinite loop problem in iedit-rect-mode, (continued)
- [nongnu] elpa/iedit 83c037d678 156/301: Fix infinite loop problem in iedit-rect-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b95c35107a 176/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 0d6193362d 144/301: Follow error convention, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c2763baaf6 168/301: Do not enable iedit from a failing isearch, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4e8b9453ac 261/301: Update occurrences in `post-command-hook', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3c305620ae 250/301: Optimize iedit-mode-from-isearch, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 85fad4a3b7 233/301: Merge pull request #73 from lionel-/feature-mode-line, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit a7f5ed7cf9 257/301: Turn off iedit-mode at running `iedit-mode-toggle-on-function` twice, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 5050b7e88e 260/301: Fix a failed test case when Emacs is compiled without GUI, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit afca4e6bbf 213/301: Rename hook functions, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7ab2509231 225/301: Expand iedit-regexp-quote with passthrough,
ELPA Syncer <=
- [nongnu] elpa/iedit efe98b2015 248/301: fix `iedit-mode-on-fuction problem, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 01fa1e5925 217/301: Fix error if sgml-electric-tag-pair-mode not bound, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d7db0e5d19 279/301: Replace `iedit-lib-aborting-hook' with a callback function, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit dbf3f9a0e3 290/301: Add iedit-update-key-bindings, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 351bee5e0d 292/301: New iedit-record-changes, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 070775fb85 296/301: New feature: apply kmacro on occurrences, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3c7159a107 298/301: Avoid calling `iedit-lib-cleanup` twice, ELPA Syncer, 2022/01/10