Function: xref--show-xrefs

xref--show-xrefs is a byte-compiled function defined in xref.el.gz.

Signature

(xref--show-xrefs FETCHER DISPLAY-ACTION &optional ALWAYS-SHOW-LIST)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(defun xref--show-xrefs (fetcher display-action &optional _always-show-list)
  (unless (functionp fetcher)
    ;; Old convention.
    (let ((xrefs fetcher))
      (setq fetcher
            (lambda ()
              (if (eq xrefs 'called-already)
                  (user-error "Refresh is not supported")
                (prog1
                    xrefs
                  (setq xrefs 'called-already)))))))
  (let ((cb (current-buffer))
        (pt (point))
        (win (selected-window)))
    (prog1
        (funcall xref-show-xrefs-function fetcher
                 `((window . ,win)
                   (display-action . ,display-action)
                   (auto-jump . ,xref-auto-jump-to-first-xref)))
      (xref--push-markers cb pt win))))