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)
This commit is contained in:
Eli Zaretskii 2025-04-17 09:25:09 +03:00
parent 4fcba8456e
commit 2925ff6c53

View file

@ -2816,10 +2816,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