Variable: xref-show-xrefs-function

xref-show-xrefs-function is a customizable variable defined in xref.el.gz.

Value

xref--show-xref-buffer

Documentation

Function to display a list of search results.

It should accept two arguments: FETCHER and ALIST.

FETCHER is a function of no arguments that returns a list of xref values. It must not depend on the current buffer or selected window.

ALIST can include, but is not limited to, the following keys:

WINDOW for the window that was selected before the current command was called.

DISPLAY-ACTION indicates where the target location should be displayed. The possible values are nil, window meaning the other window, or frame meaning the other frame.

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(defcustom xref-show-xrefs-function 'xref--show-xref-buffer
  "Function to display a list of search results.

It should accept two arguments: FETCHER and ALIST.

FETCHER is a function of no arguments that returns a list of xref
values.  It must not depend on the current buffer or selected
window.

ALIST can include, but is not limited to, the following keys:

WINDOW for the window that was selected before the current
command was called.

DISPLAY-ACTION indicates where the target location should be
displayed.  The possible values are nil, `window' meaning the
other window, or `frame' meaning the other frame."
  :type 'function)