Function: xref--show-location
xref--show-location is a byte-compiled function defined in xref.el.gz.
Signature
(xref--show-location LOCATION &optional SELECT)
Documentation
Help xref-show-xref and xref-goto-xref do their job.
Go to LOCATION and if SELECT is non-nil select its window. If
SELECT is quit, also quit the *xref* window.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(defun xref--show-location (location &optional select)
"Help `xref-show-xref' and `xref-goto-xref' do their job.
Go to LOCATION and if SELECT is non-nil select its window. If
SELECT is `quit', also quit the *xref* window."
(condition-case err
(let* ((marker (xref-location-marker location))
(buf (marker-buffer marker))
(xref-buffer (current-buffer)))
(cond (select
(if (eq select 'quit) (quit-window nil nil))
(select-window
(with-current-buffer xref-buffer
(xref--show-pos-in-buf marker buf))))
(t
(save-selected-window
(xref--with-dedicated-window
(xref--show-pos-in-buf marker buf))))))
(user-error (message (error-message-string err)))))