From: Eshel Yaron Date: Wed, 26 Jun 2024 16:51:32 +0000 (+0200) Subject: Use 'revert-function' in *xref* buffer X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=38464a31d534a672537073c4d22a4a18ea0e16ee;p=emacs.git 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) --- 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