1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Public-ize xref-show-xrefs

* lisp/progmodes/xref.el (xref-show-xrefs):
New function (wrapper for an older, private one, bug#42967).
This commit is contained in:
Dmitry Gutov 2022-02-21 03:09:32 +02:00
parent 7159c1af08
commit 3d106897fd
4 changed files with 13 additions and 6 deletions

View file

@ -1340,6 +1340,13 @@ definitions."
(defvar xref--read-pattern-history nil)
;;;###autoload
(defun xref-show-xrefs (fetcher display-action)
"Display some Xref values produced by FETCHER using DISPLAY-ACTION.
The meanings of both arguments are the same as documented in
`xref-show-xrefs-function'."
(xref--show-xrefs fetcher display-action))
(defun xref--show-xrefs (fetcher display-action &optional _always-show-list)
(xref--push-markers)
(unless (functionp fetcher)