[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra c5e162a 013/395: swiper.el (swiper-thing-at-p
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra c5e162a 013/395: swiper.el (swiper-thing-at-point): Use regexp-quote |
Date: |
Thu, 25 Feb 2021 08:31:20 -0500 (EST) |
branch: externals/ivy-hydra
commit c5e162af215b97d6ce92ca894f60d52d9551efb3
Author: Hong Xu <hong@topbug.net>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
swiper.el (swiper-thing-at-point): Use regexp-quote
This helps when thing-at-point is symbols like 1+, c++-mode, etc.
Fixes #2292
---
swiper.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/swiper.el b/swiper.el
index d8c6f54..fde1bf0 100644
--- a/swiper.el
+++ b/swiper.el
@@ -565,7 +565,7 @@ When non-nil, INITIAL-INPUT is the initial search pattern."
(let ((thing (ivy-thing-at-point)))
(when (use-region-p)
(deactivate-mark))
- (swiper thing)))
+ (swiper (regexp-quote thing))))
;;;###autoload
(defun swiper-all-thing-at-point ()
@@ -574,7 +574,7 @@ When non-nil, INITIAL-INPUT is the initial search pattern."
(let ((thing (ivy-thing-at-point)))
(when (use-region-p)
(deactivate-mark))
- (swiper-all thing)))
+ (swiper-all (regexp-quote thing))))
(defun swiper--extract-matches (regex cands)
"Extract captured REGEX groups from CANDS."
- [elpa] branch externals/ivy-hydra created (now 65f5783), Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 8dc7a05 008/395: swiper.el (swiper--remember-search-history): Extract, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d4e17ee 009/395: Also remember search history when using swiper-isearch, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra c5e162a 013/395: swiper.el (swiper-thing-at-point): Use regexp-quote,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra be231a5 001/395: counsel.el (counsel-kmacro): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1ad457d 007/395: ivy.el (ivy-read-action-function): Fix type, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f6b3b29 011/395: counsel.el (counsel-compile-forget-command): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7b1af79 012/395: counsel.el (counsel--projectile-root): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 32c097a 004/395: counsel.el (counsel-search): Rename from counsel-google and add DDG, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 884dd9e 025/395: counsel.el (counsel--git-grep-occur-cmd): Handle case folding, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 9666820 037/395: swiper.el (swiper--add-overlays): Don't miss highlights when at eol, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ad00c47 039/395: swiper.el (swiper--re-builder): Treat "\n" in input as a newline, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 64d18d1 002/395: counsel.el (counsel-ag): Respect case sensitivity settings, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra b0029ca 010/395: Make casefold settings for counsel-git-grep work., Basil L. Contovounesios, 2021/02/25