Commit 157d506d authored by Dmitry Gutov's avatar Dmitry Gutov

Rename xref--revert-xref-buffer to xref-refresh-results

* lisp/progmodes/xref.el (xref-refresh-results):
Rename from xref--revert-xref-buffer (bug#35702).
parent e309818e
......@@ -1464,6 +1464,11 @@ the new variable 'buffer-auto-revert-by-notification' to a non-nil
value. Auto Revert mode can use this information to avoid polling the
buffer periodically when 'auto-revert-avoid-polling' is non-nil.
** Xref
*** Xref buffers support refreshing the search results.
A new command 'xref-refresh-results' is bound to 'g'.
* New Modes and Packages in Emacs 27.1
......@@ -695,7 +695,7 @@ references displayed in the current *xref* buffer."
;; suggested by Johan Claesson "to further reduce finger movement":
(define-key map (kbd ".") #'xref-next-line)
(define-key map (kbd ",") #'xref-prev-line)
(define-key map (kbd "g") #'xref--revert-xref-buffer)
(define-key map (kbd "g") #'xref-refresh-results)
(define-derived-mode xref--xref-buffer-mode special-mode "XREF"
......@@ -802,7 +802,8 @@ Return an alist of the form ((FILENAME . (XREF ...)) ...)."
(setq xref--fetcher fetcher)
(defun xref--revert-xref-buffer ()
(defun xref-refresh-results ()
"Refresh the search results in the current buffer."
(unless xref--fetcher
(user-error "Reverting not supported"))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment