(mm-text-html-renderer): Prefer w3m over w3. Fall back to nil, instead of
authorReiner Steib <Reiner.Steib@gmx.de>
Sun, 2 Mar 2008 17:07:02 +0000 (17:07 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Sun, 2 Mar 2008 17:07:02 +0000 (17:07 +0000)
html2text.

lisp/ChangeLog
lisp/mm-decode.el

index a8afe24..b59028d 100644 (file)
@@ -1,5 +1,8 @@
 2008-03-02  Reiner Steib  <Reiner.Steib@gmx.de>
 
+       * mm-decode.el (mm-text-html-renderer): Prefer w3m over w3.  Fall back
+       to nil, instead of html2text.
+
        * imap.el (imap-debug): Add `imap-ping-server'.
 
        * gnus-bookmark.el: Add FIXMEs.
index 98d4446..46bf4b8 100644 (file)
         ,disposition ,description ,cache ,id))
 
 (defcustom mm-text-html-renderer
-  (cond ((locate-library "w3") 'w3)
-       ((executable-find "w3m") (if (locate-library "w3m")
-                                    'w3m
-                                  'w3m-standalone))
+  (cond ((executable-find "w3m")
+        (if (locate-library "w3m")
+            'w3m
+          'w3m-standalone))
        ((executable-find "links") 'links)
        ((executable-find "lynx") 'lynx)
-       (t 'html2text))
+       ((locate-library "w3") 'w3)
+       ((locate-library "html2text") 'html2text)
+       (t nil))
   "Render of HTML contents.
 It is one of defined renderer types, or a rendering function.
 The defined renderer types are:
-`w3'   : use Emacs/W3;
 `w3m'  : use emacs-w3m;
 `w3m-standalone': use w3m;
 `links': use links;
 `lynx' : use lynx;
+`w3'   : use Emacs/W3;
 `html2text' : use html2text;
-nil    : use external viewer."
-  :version "22.1"
+nil    : use external viewer (default web browser)."
+  :version "23.0" ;; No Gnus
   :type '(choice (const w3)
-                (const w3m)
-                (const w3m-standalone)
+                (const w3m :tag "emacs-w3m")
+                (const w3m-standalone :tag "standalone w3m" )
                 (const links)
                 (const lynx)
                 (const html2text)
-                (const nil)
+                (const nil :tag "External viewer")
                 (function))
   :group 'mime-display)