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

* lisp/progmodes/xref.el (xref-revert-buffer): Rename from
'xref-refresh-results' (https://debbugs.gnu.org/35737#40).
This commit is contained in:
Dmitry Gutov 2019-05-30 20:09:35 +03:00
parent 27f5627104
commit a01693a45c
2 changed files with 3 additions and 3 deletions

View file

@ -797,7 +797,7 @@ only one hit. This can be altered by changing
'xref-show-xrefs-function'.
*** Xref buffers support refreshing the search results.
A new command 'xref-refresh-results' is bound to 'g'.
A new command 'xref-revert-buffer' is bound to 'g'.
** Ecomplete

View file

@ -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-refresh-results)
(define-key map (kbd "g") #'xref-revert-buffer)
map))
(define-derived-mode xref--xref-buffer-mode special-mode "XREF"
@ -802,7 +802,7 @@ Return an alist of the form ((FILENAME . (XREF ...)) ...)."
(setq xref--fetcher fetcher)
(current-buffer)))))
(defun xref-refresh-results ()
(defun xref-revert-buffer ()
"Refresh the search results in the current buffer."
(interactive)
(let ((inhibit-read-only t)