Function: xref-show-definitions-buffer
xref-show-definitions-buffer is a byte-compiled function defined in
xref.el.gz.
Signature
(xref-show-definitions-buffer FETCHER ALIST)
Documentation
Show the definitions list in a regular window.
When only one definition found, jump to it right away instead.
Probably introduced at or before Emacs version 28.1.
Aliases
xref--show-defs-buffer (obsolete since 28.1)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(defun xref-show-definitions-buffer (fetcher alist)
"Show the definitions list in a regular window.
When only one definition found, jump to it right away instead."
(let ((xrefs (funcall fetcher))
buf)
(cond
((not (cdr xrefs))
(xref-pop-to-location (car xrefs)
(assoc-default 'display-action alist)))
(t
(setq buf
(xref--show-xref-buffer fetcher
(cons (cons 'fetched-xrefs xrefs)
alist)))
(xref--auto-jump-first buf (assoc-default 'auto-jump alist))
buf))))