Variable: xref-search-program
xref-search-program is a customizable variable defined in xref.el.gz.
Value
grep
Documentation
The program to use for regexp search inside files.
This must reference a corresponding entry in xref-search-program-alist.
This variable is used in xref-matches-in-files, which is the
utility function used by commands like dired-do-find-regexp and
project-find-regexp.
This variable was added, or its default value changed, in xref version
1.0.4.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(defcustom xref-search-program 'grep
"The program to use for regexp search inside files.
This must reference a corresponding entry in `xref-search-program-alist'.
This variable is used in `xref-matches-in-files', which is the
utility function used by commands like `dired-do-find-regexp' and
`project-find-regexp'."
:type '(choice
(const :tag "Use Grep" grep)
(const :tag "Use ripgrep" ripgrep)
(const :tag "Use ugrep" ugrep)
(symbol :tag "User defined"))
:version "28.1"
:package-version '(xref . "1.0.4"))