]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't override 'revert-buffer-function' globally in 'eww-buffers-mode'
authorEli Zaretskii <eliz@gnu.org>
Thu, 17 Apr 2025 06:25:09 +0000 (09:25 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 17 Apr 2025 07:20:15 +0000 (09:20 +0200)
* lisp/net/eww.el (eww-buffers-mode): Set 'revert-buffer-function'
buffer-locally.  (Bug#77854)

(cherry picked from commit 2925ff6c5383408fa6ad780066469970aa833d38)

lisp/net/eww.el

index e5eb6aafbb5b918bc27ce6b3aa66021302851c69..ffcc47d87472c6212290b272d3cacd25cdc63e24 100644 (file)
@@ -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