Variable: xref-show-definitions-function
xref-show-definitions-function is a customizable variable defined in
xref.el.gz.
Value
xref-show-definitions-buffer
Documentation
Function to handle the definition search results.
Accepts the same arguments as xref-show-xrefs-function.
Generally, it is expected to jump to the definition if there's only one, and otherwise provide some way to choose among the definitions.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(defcustom xref-show-definitions-function 'xref-show-definitions-buffer
"Function to handle the definition search results.
Accepts the same arguments as `xref-show-xrefs-function'.
Generally, it is expected to jump to the definition if there's
only one, and otherwise provide some way to choose among the
definitions."
:type '(choice
(const :tag "Show a regular list of locations"
xref-show-definitions-buffer)
(const :tag "Show a \"transient\" list at the bottom of the window"
xref-show-definitions-buffer-at-bottom)
(const :tag "Choose the definition with completion"
xref-show-definitions-completing-read)
(function :tag "Custom function")))