[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu e82b3d4236 069/288: Use delimiter regexp at anzu-quer
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu e82b3d4236 069/288: Use delimiter regexp at anzu-query-replace-at-cursor |
Date: |
Thu, 6 Jan 2022 03:58:41 -0500 (EST) |
branch: elpa/anzu
commit e82b3d4236ad2324ad1c2538aa1971c5828202d8
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Use delimiter regexp at anzu-query-replace-at-cursor
---
anzu.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/anzu.el b/anzu.el
index 8de12b6fcd..25fd7fbd80 100644
--- a/anzu.el
+++ b/anzu.el
@@ -431,9 +431,10 @@
(point)))
(defun anzu--query-from-at-cursor (prompt buf beg end overlay-limit)
- (let ((symbol (thing-at-point 'symbol)))
+ (let* ((symbol (thing-at-point 'symbol))
+ (symbol-regexp (concat "\\b" (regexp-quote symbol) "\\b")))
(setq anzu--total-matched
- (anzu--count-matched buf symbol beg end nil overlay-limit))
+ (anzu--count-matched buf symbol-regexp beg end t overlay-limit))
(force-mode-line-update)
symbol))
@@ -457,7 +458,8 @@
(unwind-protect
(let* ((from (if symbol-beg
(progn
- (setq beg symbol-beg)
+ (setq beg symbol-beg
+ delimited nil)
(anzu--query-from-at-cursor prompt curbuf beg end
overlay-limit))
(anzu--query-from-string prompt beg end use-regexp
overlay-limit)))
(to (if (consp from)
- [nongnu] elpa/anzu e9bb490b65 003/288: Update document, (continued)
- [nongnu] elpa/anzu e9bb490b65 003/288: Update document, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9de45b406c 004/288: add sample, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9ab3cfa390 007/288: Merge pull request #3 from kiwanami/master, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e39deb4aec 011/288: Add comment section, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 6fda98326a 024/288: input is regexp if isearch-regexp is non-nil, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9ec5a834cf 025/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 8f91b00c91 028/288: Improve the documentation a bit, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b644e9d067 034/288: Better one-line description, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 06ae1b1f7e 035/288: Merge pull request #9 from purcell/patch-1, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 06f4cf2fe7 037/288: Introduce anzu-minimum-input-length, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e82b3d4236 069/288: Use delimiter regexp at anzu-query-replace-at-cursor,
ELPA Syncer <=
- [nongnu] elpa/anzu b211f9a50f 067/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 4f024cd623 081/288: Clear last input cache after isearch command, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 3a7fcf2096 094/288: Merge pull request #14 from syohex/fix-increasing-anzuinfo-issue, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 537b8bfd36 071/288: Add autoload cookie, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 6b01763088 077/288: Improve replace regular expression, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu abd5953eac 018/288: Add Installation section, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 4cfbddbc07 020/288: Reset match count variables in isearch-mode-end-hook, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu de70e2fa4a 031/288: Enable mode unconditionally in examples, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 2b88e1fcbc 021/288: Improve for not regexp search commands, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 5e6bad85d4 036/288: bump up version and update Changes, ELPA Syncer, 2022/01/06