(set-buffer (marker-buffer marker))
(xref--goto-char marker)))
-(defun xref--pop-to-location (item &optional action)
+(defun xref-pop-to-location (item &optional action)
"Go to the location of ITEM and display the buffer.
ACTION controls how the buffer is displayed:
nil -- switch-to-buffer
(let ((xrefs (funcall fetcher)))
(cond
((not (cdr xrefs))
- (xref--pop-to-location (car xrefs)
- (assoc-default 'display-action alist)))
+ (xref-pop-to-location (car xrefs)
+ (assoc-default 'display-action alist)))
(t
(xref--show-xref-buffer fetcher
(cons (cons 'fetched-xrefs xrefs)
(let ((xrefs (funcall fetcher)))
(cond
((not (cdr xrefs))
- (xref--pop-to-location (car xrefs)
- (assoc-default 'display-action alist)))
+ (xref-pop-to-location (car xrefs)
+ (assoc-default 'display-action alist)))
(t
(with-current-buffer (get-buffer-create xref-buffer-name)
(xref--show-common-initialize (xref--analyze xrefs) fetcher alist)