Variable: xref-references-in-directory-function
xref-references-in-directory-function is a customizable variable
defined in xref.el.gz.
Value
xref-references-in-directory-semantic
Documentation
Function to find all references to a symbol in a directory.
It should take two string arguments: SYMBOL and DIR. And return a list of xref values representing all code references to SYMBOL in files under DIR.
This variable was added, or its default value changed, in Emacs 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(defvar ede-minor-mode) ;; ede.el
(defcustom xref-references-in-directory-function
#'xref-references-in-directory-semantic
"Function to find all references to a symbol in a directory.
It should take two string arguments: SYMBOL and DIR.
And return a list of xref values representing all code references to
SYMBOL in files under DIR."
:type '(choice
(const :tag "Using Grep via Find" xref-references-in-directory-grep)
(const :tag "Using Semantic Symbol Reference API"
xref-references-in-directory-semantic)
function)
:version "31.1")