diff options
| author | Lars Magne Ingebrigtsen | 2014-11-03 01:24:33 +0100 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2014-11-03 01:24:33 +0100 |
| commit | 13375c13454e50315e583f4bdf675827b06dba8b (patch) | |
| tree | 5b54ad8c1162cd39858cd6d02d6acd9d66087443 | |
| parent | 54b3c985d6553e67de0b661aac3191bc87807c41 (diff) | |
| download | emacs-13375c13454e50315e583f4bdf675827b06dba8b.tar.gz emacs-13375c13454e50315e583f4bdf675827b06dba8b.zip | |
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.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/net/eww.el | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 17d006604c8..ddd9fd787bb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,6 +3,8 @@ | |||
| 3 | * net/eww.el (eww-display-html): The charset is called `utf-8', | 3 | * net/eww.el (eww-display-html): The charset is called `utf-8', |
| 4 | not `utf8'. | 4 | not `utf8'. |
| 5 | (eww-readable): Decode the saved text correctly. | 5 | (eww-readable): Decode the saved text correctly. |
| 6 | (eww-readable): Save the history before displaying so that we can | ||
| 7 | go back to the non-readable version. | ||
| 6 | 8 | ||
| 7 | 2014-11-02 Lars Magne Ingebrigtsen <larsi@gnus.org> | 9 | 2014-11-02 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 8 | 10 | ||
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." | |||
| 429 | (coding-system-error nil)) | 429 | (coding-system-error nil)) |
| 430 | (libxml-parse-html-region (point-min) (point-max)))))) | 430 | (libxml-parse-html-region (point-min) (point-max)))))) |
| 431 | (eww-score-readability dom) | 431 | (eww-score-readability dom) |
| 432 | (eww-save-history) | ||
| 432 | (eww-display-html nil nil | 433 | (eww-display-html nil nil |
| 433 | (shr-retransform-dom | 434 | (shr-retransform-dom |
| 434 | (eww-highest-readability dom))) | 435 | (eww-highest-readability dom))) |