[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu 9d334a4e37 265/288: replaced string should be compile
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu 9d334a4e37 265/288: replaced string should be compiled at regexp replace |
Date: |
Thu, 6 Jan 2022 03:58:59 -0500 (EST) |
branch: elpa/anzu
commit 9d334a4e37ea908b2847bb9d74a593d5a419fd45
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: Neil Okamoto <neil.okamoto@gmail.com>
replaced string should be compiled at regexp replace
---
anzu.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/anzu.el b/anzu.el
index 139e51340e..d9dfb24233 100644
--- a/anzu.el
+++ b/anzu.el
@@ -774,8 +774,11 @@
(setq from (car from)
anzu--total-matched
anzu--last-replaced-count)))
((string-match "\0" from)
- (prog1 (substring-no-properties from (match-end 0))
- (setq from (substring-no-properties from 0
(match-beginning 0)))))
+ (let ((replaced (substring-no-properties from
(match-end 0))))
+ (setq from (substring-no-properties from 0
(match-beginning 0)))
+ (if use-regexp
+ (anzu--compile-replace-text replaced)
+ replaced)))
(t
(anzu--query-replace-read-to
from prompt beg end use-regexp overlay-limit)))))
- [nongnu] elpa/anzu 4992a0c23c 223/288: Fix typo, (continued)
- [nongnu] elpa/anzu 4992a0c23c 223/288: Fix typo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 72e86131a2 243/288: Merge pull request #75 from syohex/user-case-fold-search, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 7b8146c1eb 254/288: Improve alt attribute of images, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 6fded24b36 224/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu f2914907e9 255/288: Update minimum Emacs version, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 13401ab3c6 249/288: Don't search over bound, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu d257c79a7a 258/288: Merge pull request #85 from syohex/add-docstrings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 0dbefcdd1f 252/288: Enforce use of spaces for indentation, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 177a328830 266/288: Fix issue #93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu a5a22fd537 280/288: release 0.63, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9d334a4e37 265/288: replaced string should be compiled at regexp replace,
ELPA Syncer <=
- [nongnu] elpa/anzu ffbe938d60 268/288: perform elisp-lint in circleci, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 7dc4abe0a0 274/288: Merge branch 'master' into fix93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e4c2728734 270/288: fix check-declare error by eliminating declare-function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ee6a6448df 277/288: Merge pull request #107 from emacsorphanage/revert-104-fix93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 71a1a88dcd 275/288: Merge pull request #104 from agreselin/fix93, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 2e69955da9 271/288: clean up "make lint" rule in Makefile, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 592f8ee6d0 263/288: Merge pull request #95 from syohex/emacs-27-bug, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 7b8688c84d 282/288: default anzu-search-threshold and anzu-replace-threshold is 1000, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b3d15fba55 283/288: Support non contiguous regions like rectangle region (#115), ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 5abb37455e 288/288: fix the ci status badge on README.md, ELPA Syncer, 2022/01/06