emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/anzu 1f7ac26191 189/288: Just call isearch-symbol-regexp i


From: ELPA Syncer
Subject: [nongnu] elpa/anzu 1f7ac26191 189/288: Just call isearch-symbol-regexp instead of constructing own regexp
Date: Thu, 6 Jan 2022 03:58:51 -0500 (EST)

branch: elpa/anzu
commit 1f7ac2619163d20e99e324212100bd2c845ecd8c
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>

    Just call isearch-symbol-regexp instead of constructing own regexp
---
 anzu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/anzu.el b/anzu.el
index 924a3fb430..e44f4ce221 100644
--- a/anzu.el
+++ b/anzu.el
@@ -153,7 +153,7 @@
 
 (defun anzu--transform-input (str)
   (cond ((eq isearch-word 'isearch-symbol-regexp)
-         (setq str (concat "\\_<" str "\\_>")))
+         (setq str (isearch-symbol-regexp str)))
         ((anzu--word-search-p)
          (setq str (regexp-quote str)))
         (t str)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]