From: Eli Zaretskii Date: Thu, 17 Apr 2025 06:25:09 +0000 (+0300) Subject: Don't override 'revert-buffer-function' globally in 'eww-buffers-mode' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cfe2d5a73c92aa23d2dfc9d33f99ad52d3402272;p=emacs.git Don't override 'revert-buffer-function' globally in 'eww-buffers-mode' * lisp/net/eww.el (eww-buffers-mode): Set 'revert-buffer-function' buffer-locally. (Bug#77854) (cherry picked from commit 2925ff6c5383408fa6ad780066469970aa833d38) --- diff --git a/lisp/net/eww.el b/lisp/net/eww.el index e5eb6aafbb5..ffcc47d8747 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -2788,10 +2788,10 @@ The format of the data is (title url buffer), for use in of \\{eww-buffers-mode-map}" :interactive nil (buffer-disable-undo) - (setq truncate-lines t - ;; This is set so that pressing "g" with point just below the - ;; table will still update the listing. - revert-buffer-function #'eww--list-buffers-display-table)) + (setq truncate-lines t) + ;; This is set so that pressing "g" with point just below the table + ;; will still update the listing. + (setq-local revert-buffer-function #'eww--list-buffers-display-table)) ;;; Desktop support