From: Dmitry Gutov Date: Sat, 25 May 2024 21:58:57 +0000 (+0300) Subject: xref-revert-buffer: Make inhibit-modification-hooks binding a bit safer X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~1364 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7ca238c4413284253c06ed2b060a7a0f79653b40;p=emacs.git xref-revert-buffer: Make inhibit-modification-hooks binding a bit safer * lisp/progmodes/xref.el (xref-revert-buffer): Make sure that the inhibit-modification-hooks binding does not cover xref--fetcher funcall. Only the printing step (issue mentioned in bug#53749). --- diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 534bd930e13..af77e860020 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -1277,11 +1277,11 @@ Return an alist of the form ((GROUP . (XREF ...)) ...)." "Refresh the search results in the current buffer." (interactive) (let ((inhibit-read-only t) - (buffer-undo-list t) - (inhibit-modification-hooks t)) + (buffer-undo-list t)) (save-excursion (condition-case err - (let ((alist (xref--analyze (funcall xref--fetcher)))) + (let ((alist (xref--analyze (funcall xref--fetcher))) + (inhibit-modification-hooks t)) (erase-buffer) (xref--insert-xrefs alist)) (user-error