From 9468ab257064bc911ba5ad5cb527f7745d78cff3 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) (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 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")) -- 2.39.2