From 13375c13454e50315e583f4bdf675827b06dba8b Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Mon, 3 Nov 2014 01:24:33 +0100 Subject: [PATCH] Have `R' in eww save the history (eww-readable): Save the history before displaying so that we can go back to the non-readable version. --- lisp/ChangeLog | 2 ++ lisp/net/eww.el | 1 + 2 files changed, 3 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 17d006604c8..ddd9fd787bb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -3,6 +3,8 @@ * net/eww.el (eww-display-html): The charset is called `utf-8', not `utf8'. (eww-readable): Decode the saved text correctly. + (eww-readable): Save the history before displaying so that we can + go back to the non-readable version. 2014-11-02 Lars Magne Ingebrigtsen diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 0e74201173e..6060062abb3 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -429,6 +429,7 @@ the like." (coding-system-error nil)) (libxml-parse-html-region (point-min) (point-max)))))) (eww-score-readability dom) + (eww-save-history) (eww-display-html nil nil (shr-retransform-dom (eww-highest-readability dom))) -- 2.39.5