Function: xref-revert-buffer
xref-revert-buffer is an interactive and byte-compiled function
defined in xref.el.gz.
Signature
(xref-revert-buffer)
Documentation
Refresh the search results in the current buffer.
Probably introduced at or before Emacs version 27.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(defun xref-revert-buffer ()
"Refresh the search results in the current buffer."
(interactive)
(let ((inhibit-read-only t)
(buffer-undo-list t)
(inhibit-modification-hooks t))
(save-excursion
(condition-case err
(let ((alist (xref--analyze (funcall xref--fetcher))))
(erase-buffer)
(xref--insert-xrefs alist))
(user-error
(erase-buffer)
(insert
(propertize
(error-message-string err)
'face 'error)))))))