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

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

[elpa] externals/ivy-hydra 73c9773 180/395: Fix ripgrep pcre2 feature de


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 73c9773 180/395: Fix ripgrep pcre2 feature detection
Date: Thu, 25 Feb 2021 08:31:58 -0500 (EST)

branch: externals/ivy-hydra
commit 73c9773398af79da28f2630f4ab48434bc173028
Author: ambihelical <ambihelical@users.noreply.github.com>
Commit: ambihelical <ambihelical@users.noreply.github.com>

    Fix ripgrep pcre2 feature detection
    
    Some versions of ripgrep ignore the --pcre2 flag when --version is
    used. This defeats the test for pcre2 support.
    
    This commit changes this to use --pcre-version. In this mode ripgrep
    checks for pcre2 support and sets exit status as expected.
---
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index 57ec13c..fc7290c 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3079,7 +3079,7 @@ Example input with inclusion and exclusion file patterns:
         (counsel--grep-tool-look-around
          (let ((rg (car (split-string counsel-rg-base-command)))
                (switch "--pcre2"))
-           (and (eq 0 (call-process rg nil nil nil switch "--version"))
+           (and (eq 0 (call-process rg nil nil nil switch "--pcre2-version"))
                 switch))))
     (counsel-ag initial-input initial-directory extra-rg-args rg-prompt
                 :caller 'counsel-rg)))



reply via email to

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