From: Manuel Uberti Date: Mon, 28 Mar 2022 12:26:50 +0000 (+0200) Subject: Support ugrep in xref-search-program-alist X-Git-Tag: emacs-29.0.90~1931^2~830 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9468ab257064bc911ba5ad5cb527f7745d78cff3;p=emacs.git Support ugrep in xref-search-program-alist * lisp/progmodes/xref.el (xref-search-program-alist) (xref-search-program): Add entries for ugrep (bug#54608). --- diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 5d1ba4eaf55..870dad61a44 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 --null -nH --no-heading --no-messages -g '!*/' -e " - )) + ) + (ugrep . "xargs -0 ugrep --null -ns -e ")) "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"))