From 5f554cdca74d5c0a83561f705c1199fb0bad757a Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Mon, 24 Dec 2018 12:52:20 -0500 Subject: [PATCH] Rename counsel-unquote-regex-parens to counsel--elisp-to-pcre Re-implemented and renamed in: https://github.com/abo-abo/swiper/pull/1863 Signed-off-by: Rudi Grinberg --- counsel-projectile.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/counsel-projectile.el b/counsel-projectile.el index dcdde0e..4a1eb19 100644 --- a/counsel-projectile.el +++ b/counsel-projectile.el @@ -647,7 +647,7 @@ construct the command.") "Grep for STRING in the current project." (or (counsel-more-chars) (let ((default-directory (ivy-state-directory ivy-last)) - (regex (counsel-unquote-regex-parens + (regex (counsel--elisp-to-pcre (setq ivy--old-re (ivy--regex string))))) (counsel--async-command (format counsel-projectile-grep-command @@ -681,7 +681,7 @@ construct the command.") (match-string 1 (buffer-name)))) (let* ((cmd (format counsel-projectile-grep-command (shell-quote-argument - (counsel-unquote-regex-parens + (counsel--elisp-to-pcre (ivy--regex ivy-text))))) (cands (split-string (shell-command-to-string cmd) "\n" t))) ;; Need precise number of header lines for `wgrep' to work.