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'.
+
\f
* New Modes and Packages in Emacs 27.1
;; 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)
map))
(define-derived-mode xref--xref-buffer-mode special-mode "XREF"
(setq xref--fetcher fetcher)
(current-buffer)))))
-(defun xref--revert-xref-buffer ()
+(defun xref-refresh-results ()
+ "Refresh the search results in the current buffer."
(interactive)
(unless xref--fetcher
(user-error "Reverting not supported"))