summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2024-03-17 12:01:59 -0700
committerJim Porter <jporterbugs@gmail.com>2024-03-23 10:17:06 -0700
commit72972118e6f5831f200108cd7b80bf86538c265e (patch)
treee096274d388abcf57ffff132f13566b02fdc5578 /doc
parentaf1e36d0c66350113869df9e840e5f21b750ce9d (diff)
downloademacs-72972118e6f5831f200108cd7b80bf86538c265e.tar.gz
Allow toggling "readable" mode in EWW
Additionally, add an option to prevent adding a new history entry for each call of 'eww-readable' (bug#68254). * lisp/net/eww.el (eww-retrieve): * lisp/net/eww.el (eww-readable-adds-to-history): New option. (eww-retrieve): Make sure we call CALLBACK in all configurations. (eww-render): Simplify how to pass encoding. (eww--parse-html-region, eww-display-document): New functions, extracted from... (eww-display-html): ... here. (eww-document-base): New function. (eww-readable): Toggle "readable" mode interactively, like with a minor mode. Consult 'eww-readable-adds-to-history'. (eww-reload): Use 'eshell-display-document'. * test/lisp/net/eww-tests.el (eww-test--with-mock-retrieve): Fix indent. (eww-test/display/html, eww-test/readable/toggle-display): New tests. * doc/misc/eww.texi (Basics): Describe the new behavior. * etc/NEWS: Announce this change.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/eww.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/misc/eww.texi b/doc/misc/eww.texi
index d31fcf1802b..522034c874d 100644
--- a/doc/misc/eww.texi
+++ b/doc/misc/eww.texi
@@ -146,6 +146,11 @@ a new tab is created on the frame tab bar.
which part of the document contains the ``readable'' text, and will
only display this part. This usually gets rid of menus and the like.
+ When called interactively, this command toggles the display of the
+readable parts. With a positive prefix argument, this command always
+displays the readable parts, and with a zero or negative prefix, it
+always displays the full page.
+
@findex eww-toggle-fonts
@vindex shr-use-fonts
@kindex F