]> git.eshelyaron.com Git - emacs.git/commitdiff
Use 'revert-function' in *xref* buffer
authorEshel Yaron <me@eshelyaron.com>
Wed, 26 Jun 2024 16:51:32 +0000 (18:51 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 28 Jun 2024 05:45:09 +0000 (07:45 +0200)
* lisp/progmodes/xref.el (xref--xref-buffer-mode-map): Cease
binding 'g' to 'xref-revert-buffer'.
(xref--xref-buffer-mode): Set 'revert-buffer-function' to...
(xref--revert-buffer): ...this.  New function, renamed from...
(xref-revert-buffer): ...this.  Make it an alias of
'revert-buffer'.
* etc/NEWS: Announce it.
* doc/emacs/maintaining.texi (Xref Commands): Update docs.

(cherry picked from commit 82125b1a6616259531ef3abd45b41089de160ba7)

doc/emacs/maintaining.texi

index 2e46b5560a2c2d0381c29ea4ad814e5d97ce0016..38f66d29fadffa5cfbb3624c80443c54d5af422b 100644 (file)
@@ -2461,10 +2461,10 @@ the match with @var{replacement}.  This command can only be used in
 @file{*xref*} buffers that show all the matches for an identifier in
 all the relevant files.  @xref{Identifier Search}.
 
+@cindex revert-buffer, in @file{*xref*} buffers
 @item g
-@findex xref-revert-buffer
-Refresh the contents of the @file{*xref*} buffer
-(@code{xref-revert-buffer}).
+Refresh the contents of the @file{*xref*} buffer (@code{revert-buffer}).
+@xref{Reverting}.
 
 @item M-,
 @findex xref-quit-and-pop-marker-stack