emacs-diffs
[Top][All Lists]
Advanced

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

master 9468ab2570: Support ugrep in xref-search-program-alist


From: Dmitry Gutov
Subject: master 9468ab2570: Support ugrep in xref-search-program-alist
Date: Fri, 1 Apr 2022 21:32:06 -0400 (EDT)

branch: master
commit 9468ab257064bc911ba5ad5cb527f7745d78cff3
Author: Manuel Uberti <manuel.uberti@inventati.org>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Support ugrep in xref-search-program-alist
    
    * lisp/progmodes/xref.el
    (xref-search-program-alist)
    (xref-search-program): Add entries for ugrep (bug#54608).
---
 lisp/progmodes/xref.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 5d1ba4eaf5..870dad61a4 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -1715,7 +1715,8 @@ IGNORES is a list of glob patterns for files to ignore."
      .
      ;; '!*/' is there to filter out dirs (e.g. submodules).
      "xargs -0 rg <C> --null -nH --no-heading --no-messages -g '!*/' -e <R>"
-     ))
+     )
+    (ugrep . "xargs -0 ugrep <C> --null -ns -e <R>"))
   "Associative list mapping program identifiers to command templates.
 
 Program identifier should be a symbol, named after the search program.
@@ -1744,6 +1745,7 @@ utility function used by commands like 
`dired-do-find-regexp' and
   :type '(choice
           (const :tag "Use Grep" grep)
           (const :tag "Use ripgrep" ripgrep)
+          (const :tag "Use ugrep" grep)
           (symbol :tag "User defined"))
   :version "28.1"
   :package-version '(xref . "1.0.4"))



reply via email to

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