diff options
| author | Eli Zaretskii | 2014-09-13 12:25:38 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-09-13 12:25:38 +0300 |
| commit | 5f9d7c7c5c41efea91b24c78e35f9e661ac7d7dd (patch) | |
| tree | 61176eedf5562e2f6b4c6e9390a1d56da9fb6873 | |
| parent | cac270ffcd23c0aa18f0af965742645e7f3bdb04 (diff) | |
| download | emacs-5f9d7c7c5c41efea91b24c78e35f9e661ac7d7dd.tar.gz emacs-5f9d7c7c5c41efea91b24c78e35f9e661ac7d7dd.zip | |
Fix HTML rendering by shr-insert-document in Rmail.
lisp/mail/rmailmm.el (rmail-mime-insert-html): Decode the HTML part
using the specified transfer-encoding, if any, or 'undecided'.
(rmail-mime-render-html-shr): Bind shr-width to nil, so lines are
broken at the window margin.
Fixes: debbugs:4258
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/mail/rmailmm.el | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e79f8563b49..a05b7b59a27 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | * mail/rmailmm.el (rmail-mime-insert-html): Decode the HTML part | 3 | * mail/rmailmm.el (rmail-mime-insert-html): Decode the HTML part |
| 4 | using the specified transfer-encoding, if any, or 'undecided'. | 4 | using the specified transfer-encoding, if any, or 'undecided'. |
| 5 | (rmail-mime-render-html-shr): Bind shr-width to nil, so lines are | ||
| 6 | broken at the window margin. | ||
| 5 | 7 | ||
| 6 | 2013-12-27 Ken Olum <kdo@cosmos.phy.tufts.edu> | 8 | 2013-12-27 Ken Olum <kdo@cosmos.phy.tufts.edu> |
| 7 | 9 | ||
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el index becfb2f8cab..b5b594f59f2 100644 --- a/lisp/mail/rmailmm.el +++ b/lisp/mail/rmailmm.el | |||
| @@ -694,7 +694,12 @@ HEADER is a header component of a MIME-entity object (see | |||
| 694 | ;; Image retrieval happens asynchronously, but meanwhile | 694 | ;; Image retrieval happens asynchronously, but meanwhile |
| 695 | ;; `rmail-swap-buffers' may have been run, leaving | 695 | ;; `rmail-swap-buffers' may have been run, leaving |
| 696 | ;; `shr-image-fetched' trying to insert the image in the wrong buffer. | 696 | ;; `shr-image-fetched' trying to insert the image in the wrong buffer. |
| 697 | (shr-inhibit-images t)) | 697 | (shr-inhibit-images t) |
| 698 | ;; Bind shr-width to nil to force shr-insert-document break | ||
| 699 | ;; the lines at the window margin. The default is | ||
| 700 | ;; fill-column, whose default value is too small, and screws | ||
| 701 | ;; up display of the quoted messages. | ||
| 702 | shr-width) | ||
| 698 | (shr-insert-document dom))) | 703 | (shr-insert-document dom))) |
| 699 | 704 | ||
| 700 | (defun rmail-mime-render-html-lynx (source-buffer) | 705 | (defun rmail-mime-render-html-lynx (source-buffer) |