aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2018-04-12 19:18:26 +0200
committerLars Ingebrigtsen2018-04-12 19:18:26 +0200
commit17174d3f77fe6d5103bfe7e858035a0038010522 (patch)
treebf4e6b031095daa453a4223a6152f77df4f4b184
parent4616ddc1316f9e25429ab932bf87149dc578381d (diff)
downloademacs-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.texi12
-rw-r--r--doc/misc/gnus.texi3
-rw-r--r--doc/misc/mh-e.texi7
-rw-r--r--etc/NEWS3
-rw-r--r--lisp/gnus/gnus-art.el3
-rw-r--r--lisp/gnus/gnus-score.el3
-rw-r--r--lisp/gnus/mm-decode.el9
-rw-r--r--lisp/gnus/mm-view.el2
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
407This selects the function used to render @acronym{HTML}. The predefined 407This selects the function used to render @acronym{HTML}. The
408renderers are selected by the symbols @code{shr}, @code{gnus-w3m}, 408predefined 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
410information 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 411emacs-w3m}, @code{links}, @code{lynx}, @code{w3m-standalone} or
412external viewer. You can also specify a function, which will be 412@code{html2text}. You can also specify a function, which will be
413called with a @acronym{MIME} handle as the argument. 413called 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
9806eliminating these ``web bugs'' you should only use it for mails from 9806eliminating these ``web bugs'' you should only use it for mails from
9807trusted senders. 9807trusted senders.
9808 9808
9809If you always want to display @acronym{HTML} parts in the browser, set
9810@code{mm-text-html-renderer} to @code{nil}.
9811
9812This command creates temporary files to pass @acronym{HTML} contents 9809This command creates temporary files to pass @acronym{HTML} contents
9813including images if any to the browser, and deletes them when exiting 9810including images if any to the browser, and deletes them when exiting
9814the group (if you want). 9811the 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
2589always handle special characters like @samp{®} or @samp{–}. 2589always handle special characters like @samp{®} or @samp{–}.
2590It does not download images. 2590It does not download images.
2591@c ------------------------- 2591@c -------------------------
2592@item @samp{nil}
2593This choice obviously requires an external browser. With this setting,
2594HTML 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
2596characters and handling of remote images depends on your choice of
2597browser.
2598@c -------------------------
2599@item @samp{shr} 2592@item @samp{shr}
2600@cindex @samp{shr} 2593@cindex @samp{shr}
2601This choice does not require an external program, but it does require 2594This choice does not require an external program, but it does require
diff --git a/etc/NEWS b/etc/NEWS
index e3f05f3e0f5..47c77d1a830 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
195concept index in the Gnus manual for the `match-list' entry. 195concept 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
3002browser without eliminating these \"web bugs\" you should only 3002browser without eliminating these \"web bugs\" you should only
3003use it for mails from trusted senders. 3003use it for mails from trusted senders.
3004 3004
3005If you always want to display HTML parts in the browser, set
3006`mm-text-html-renderer' to nil.
3007
3008This command creates temporary files to pass HTML contents including 3005This command creates temporary files to pass HTML contents including
3009images if any to the browser, and deletes them when exiting the group 3006images 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.
124It is one of defined renderer types, or a rendering function. 123It is one of defined renderer types, or a rendering function.
125The defined renderer types are: 124The 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."
133nil : 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