From 38464a31d534a672537073c4d22a4a18ea0e16ee Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Wed, 26 Jun 2024 18:51:32 +0200 Subject: [PATCH] Use 'revert-function' in *xref* buffer * 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 2e46b5560a2..38f66d29fad 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi @@ -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 -- 2.39.2