]> git.eshelyaron.com Git - emacs.git/commit
Show "readable" status in the EWW mode line
authorJim Porter <jporterbugs@gmail.com>
Fri, 4 Jul 2025 23:23:45 +0000 (16:23 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 07:45:51 +0000 (09:45 +0200)
commit2fd16e1a32aeb4fe168f13118ca6aedc6336ac92
treed3bb3d8ad3947480527ba1cecb0d5db14d176d53
parentf766b8377487558499841f694684482b8694b490
Show "readable" status in the EWW mode line

* lisp/net/eww.el (eww-display-html): Check whether a readable form of
the document exists; if not, don't set ':readable' to t.
(eww-readable): Check whether a readable form of the document exists; if
not, warn the user and don't add to history.
(eww-readable-dom): Return nil if no readable form exists.
(eww-mode): Check the ':readable' property of 'eww-data' to show
"readable" state in the mode line.

* test/lisp/net/eww-tests.el
(eww-test/readable/default-readable/non-readable-page): New test
(bug#78958).

(cherry picked from commit d3c75a3d2de6aa2609b1afef0ae2d1a6e833e9bc)
lisp/net/eww.el
test/lisp/net/eww-tests.el