From ff949f7c65913697bfc9f284b86c6e55479e9730 Mon Sep 17 00:00:00 2001 From: Manuel Uberti Date: Mon, 28 Mar 2022 14:26:50 +0200 Subject: [PATCH] Support ugrep in xref-search-program-alist * lisp/progmodes/xref.el xref-search-program-alist (Add ugrep) xref-search-program (Add ugrep) --- 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 @@ xref-search-program-alist . ;; '!*/' 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 @@ xref-search-program :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")) -- 2.25.1