'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
;; 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"
(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)