diff options
| author | Lars Ingebrigtsen | 2018-04-12 19:18:26 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2018-04-12 19:18:26 +0200 |
| commit | 17174d3f77fe6d5103bfe7e858035a0038010522 (patch) | |
| tree | bf4e6b031095daa453a4223a6152f77df4f4b184 | |
| parent | 4616ddc1316f9e25429ab932bf87149dc578381d (diff) | |
| download | emacs-17174d3f77fe6d5103bfe7e858035a0038010522.tar.gz emacs-17174d3f77fe6d5103bfe7e858035a0038010522.zip | |
nil is no longer an allowed value for mm-inline-text-html
* doc/misc/emacs-mime.texi (Display Customization): Remove the doc
for the nil case of mm-inline-text-html.
* doc/misc/mh-e.texi (HTML): Ditto.
* lisp/gnus/mm-view.el (mm-inline-text-html): If no
mm-text-html-renderer is specified, just insert the raw text
instead of erroring out (bug#30870).
| -rw-r--r-- | doc/misc/emacs-mime.texi | 12 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 3 | ||||
| -rw-r--r-- | doc/misc/mh-e.texi | 7 | ||||
| -rw-r--r-- | etc/NEWS | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-score.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/mm-decode.el | 9 | ||||
| -rw-r--r-- | lisp/gnus/mm-view.el | 2 |
8 files changed, 15 insertions, 27 deletions
diff --git a/doc/misc/emacs-mime.texi b/doc/misc/emacs-mime.texi index 2c607cc97c5..c0b16f30c4d 100644 --- a/doc/misc/emacs-mime.texi +++ b/doc/misc/emacs-mime.texi | |||
| @@ -404,12 +404,12 @@ variable will cause @samp{text/html} parts to be treated as attachments. | |||
| 404 | 404 | ||
| 405 | @item mm-text-html-renderer | 405 | @item mm-text-html-renderer |
| 406 | @vindex mm-text-html-renderer | 406 | @vindex mm-text-html-renderer |
| 407 | This selects the function used to render @acronym{HTML}. The predefined | 407 | This selects the function used to render @acronym{HTML}. The |
| 408 | renderers are selected by the symbols @code{shr}, @code{gnus-w3m}, | 408 | predefined renderers are selected by the symbols @code{shr}, |
| 409 | @code{w3m}@footnote{See @uref{http://emacs-w3m.namazu.org/} for more | 409 | @code{gnus-w3m}, @code{w3m}@footnote{See |
| 410 | information about emacs-w3m}, @code{links}, @code{lynx}, | 410 | @uref{http://emacs-w3m.namazu.org/} for more information about |
| 411 | @code{w3m-standalone} or @code{html2text}. If @code{nil} use an | 411 | emacs-w3m}, @code{links}, @code{lynx}, @code{w3m-standalone} or |
| 412 | external viewer. You can also specify a function, which will be | 412 | @code{html2text}. You can also specify a function, which will be |
| 413 | called with a @acronym{MIME} handle as the argument. | 413 | called with a @acronym{MIME} handle as the argument. |
| 414 | 414 | ||
| 415 | @item mm-html-inhibit-images | 415 | @item mm-html-inhibit-images |
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index dd8fde494b2..1a2f6dd09f1 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -9806,9 +9806,6 @@ this command passes the @acronym{HTML} content to the browser without | |||
| 9806 | eliminating these ``web bugs'' you should only use it for mails from | 9806 | eliminating these ``web bugs'' you should only use it for mails from |
| 9807 | trusted senders. | 9807 | trusted senders. |
| 9808 | 9808 | ||
| 9809 | If you always want to display @acronym{HTML} parts in the browser, set | ||
| 9810 | @code{mm-text-html-renderer} to @code{nil}. | ||
| 9811 | |||
| 9812 | This command creates temporary files to pass @acronym{HTML} contents | 9809 | This command creates temporary files to pass @acronym{HTML} contents |
| 9813 | including images if any to the browser, and deletes them when exiting | 9810 | including images if any to the browser, and deletes them when exiting |
| 9814 | the group (if you want). | 9811 | the group (if you want). |
diff --git a/doc/misc/mh-e.texi b/doc/misc/mh-e.texi index b44e503996b..7ec9aec0166 100644 --- a/doc/misc/mh-e.texi +++ b/doc/misc/mh-e.texi | |||
| @@ -2589,13 +2589,6 @@ centers the output and wraps long lines more than most. It does not | |||
| 2589 | always handle special characters like @samp{®} or @samp{–}. | 2589 | always handle special characters like @samp{®} or @samp{–}. |
| 2590 | It does not download images. | 2590 | It does not download images. |
| 2591 | @c ------------------------- | 2591 | @c ------------------------- |
| 2592 | @item @samp{nil} | ||
| 2593 | This choice obviously requires an external browser. With this setting, | ||
| 2594 | HTML messages have a button for the body part which you can view with | ||
| 2595 | @kbd{K v} (@code{mh-folder-toggle-mime-part}). Rendering of special | ||
| 2596 | characters and handling of remote images depends on your choice of | ||
| 2597 | browser. | ||
| 2598 | @c ------------------------- | ||
| 2599 | @item @samp{shr} | 2592 | @item @samp{shr} |
| 2600 | @cindex @samp{shr} | 2593 | @cindex @samp{shr} |
| 2601 | This choice does not require an external program, but it does require | 2594 | This choice does not require an external program, but it does require |
| @@ -194,6 +194,9 @@ has a search engine. | |||
| 194 | *** Splitting mail on common mailing list has been added. See the | 194 | *** Splitting mail on common mailing list has been added. See the |
| 195 | concept index in the Gnus manual for the `match-list' entry. | 195 | concept index in the Gnus manual for the `match-list' entry. |
| 196 | 196 | ||
| 197 | +++ | ||
| 198 | *** nil is no longer an allowed value for `mm-text-html-renderer'. | ||
| 199 | |||
| 197 | 200 | ||
| 198 | ** Htmlfontify | 201 | ** Htmlfontify |
| 199 | *** The functions 'hfy-color', 'hfy-color-vals' and | 202 | *** The functions 'hfy-color', 'hfy-color-vals' and |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 595ae58c813..c11cf574a39 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -3002,9 +3002,6 @@ articles to verify whether you have read the message. As | |||
| 3002 | browser without eliminating these \"web bugs\" you should only | 3002 | browser without eliminating these \"web bugs\" you should only |
| 3003 | use it for mails from trusted senders. | 3003 | use it for mails from trusted senders. |
| 3004 | 3004 | ||
| 3005 | If you always want to display HTML parts in the browser, set | ||
| 3006 | `mm-text-html-renderer' to nil. | ||
| 3007 | |||
| 3008 | This command creates temporary files to pass HTML contents including | 3005 | This command creates temporary files to pass HTML contents including |
| 3009 | images if any to the browser, and deletes them when exiting the group | 3006 | images if any to the browser, and deletes them when exiting the group |
| 3010 | \(if you want)." | 3007 | \(if you want)." |
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el index 4192381700d..6878aa69c66 100644 --- a/lisp/gnus/gnus-score.el +++ b/lisp/gnus/gnus-score.el | |||
| @@ -1751,8 +1751,7 @@ score in `gnus-newsgroup-scored' by SCORE." | |||
| 1751 | (mm-display-inline handle) | 1751 | (mm-display-inline handle) |
| 1752 | (goto-char (point-max)))))) | 1752 | (goto-char (point-max)))))) |
| 1753 | 1753 | ||
| 1754 | (let ( ;(mm-text-html-renderer 'w3m-standalone) | 1754 | (let ((handles (mm-dissect-buffer t))) |
| 1755 | (handles (mm-dissect-buffer t))) | ||
| 1756 | (save-excursion | 1755 | (save-excursion |
| 1757 | (article-goto-body) | 1756 | (article-goto-body) |
| 1758 | (delete-region (point) (point-max)) | 1757 | (delete-region (point) (point-max)) |
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index f55a6af8027..7ab84c0c83d 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el | |||
| @@ -118,8 +118,7 @@ | |||
| 118 | ((executable-find "w3m") 'gnus-w3m) | 118 | ((executable-find "w3m") 'gnus-w3m) |
| 119 | ((executable-find "links") 'links) | 119 | ((executable-find "links") 'links) |
| 120 | ((executable-find "lynx") 'lynx) | 120 | ((executable-find "lynx") 'lynx) |
| 121 | ((locate-library "html2text") 'html2text) | 121 | ((locate-library "html2text") 'html2text)) |
| 122 | (t nil)) | ||
| 123 | "Render of HTML contents. | 122 | "Render of HTML contents. |
| 124 | It is one of defined renderer types, or a rendering function. | 123 | It is one of defined renderer types, or a rendering function. |
| 125 | The defined renderer types are: | 124 | The defined renderer types are: |
| @@ -129,9 +128,8 @@ The defined renderer types are: | |||
| 129 | `w3m-standalone': use plain w3m; | 128 | `w3m-standalone': use plain w3m; |
| 130 | `links': use links; | 129 | `links': use links; |
| 131 | `lynx': use lynx; | 130 | `lynx': use lynx; |
| 132 | `html2text': use html2text; | 131 | `html2text': use html2text." |
| 133 | nil : use external viewer (default web browser)." | 132 | :version "27.1" |
| 134 | :version "24.1" | ||
| 135 | :type '(choice (const shr) | 133 | :type '(choice (const shr) |
| 136 | (const gnus-w3m) | 134 | (const gnus-w3m) |
| 137 | (const w3m :tag "emacs-w3m") | 135 | (const w3m :tag "emacs-w3m") |
| @@ -139,7 +137,6 @@ nil : use external viewer (default web browser)." | |||
| 139 | (const links) | 137 | (const links) |
| 140 | (const lynx) | 138 | (const lynx) |
| 141 | (const html2text) | 139 | (const html2text) |
| 142 | (const nil :tag "External viewer") | ||
| 143 | (function)) | 140 | (function)) |
| 144 | :group 'mime-display) | 141 | :group 'mime-display) |
| 145 | 142 | ||
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el index 75786cd71b8..50a927bce23 100644 --- a/lisp/gnus/mm-view.el +++ b/lisp/gnus/mm-view.el | |||
| @@ -318,6 +318,8 @@ | |||
| 318 | (if entry | 318 | (if entry |
| 319 | (setq func (cdr entry))) | 319 | (setq func (cdr entry))) |
| 320 | (cond | 320 | (cond |
| 321 | ((null func) | ||
| 322 | (mm-insert-inline handle (mm-get-part handle))) | ||
| 321 | ((functionp func) | 323 | ((functionp func) |
| 322 | (funcall func handle)) | 324 | (funcall func handle)) |
| 323 | (t | 325 | (t |