diff options
author | Jim Porter <jporterbugs@gmail.com> | 2024-03-17 12:01:59 -0700 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2024-03-23 10:17:06 -0700 |
commit | 72972118e6f5831f200108cd7b80bf86538c265e (patch) | |
tree | e096274d388abcf57ffff132f13566b02fdc5578 /etc | |
parent | af1e36d0c66350113869df9e840e5f21b750ce9d (diff) | |
download | emacs-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 'etc')
-rw-r--r-- | etc/NEWS | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1066,6 +1066,18 @@ entries newer than the current page. To change the behavior when browsing from "historical" pages, you can customize 'eww-before-browse-history-function'. ++++ +*** 'eww-readable' now toggles display of the readable parts of a web page. +When called interactively, 'eww-readable' toggles whether to display +only the readable parts of a page or the full page. With a positive +prefix argument, it always displays the readable parts, and with a zero +or negative prefix, it always displays the full page. + +--- +*** New option 'eww-readable-adds-to-history'. +When non-nil (the default), calling 'eww-readable' adds a new entry to +the EWW page history. + ** go-ts-mode +++ |