(mm-text-html-renderer): Make sure w3m exists in addition to emacs-w3m.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Sun, 23 May 2004 23:18:06 +0000 (23:18 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sun, 23 May 2004 23:18:06 +0000 (23:18 +0000)
lisp/ChangeLog
lisp/mm-decode.el

index 9a03688..87440bb 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-23  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mm-decode.el (mm-text-html-renderer): Make sure w3m exists in
+       addition to emacs-w3m.
+
 2004-05-23  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * assistant.el (assistant-authinfo-data): New function.
 2004-05-23  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * assistant.el (assistant-authinfo-data): New function.
index 5d0ce15..29c41c6 100644 (file)
@@ -98,8 +98,9 @@
 
 (defcustom mm-text-html-renderer
   (cond ((locate-library "w3") 'w3)
 
 (defcustom mm-text-html-renderer
   (cond ((locate-library "w3") 'w3)
-       ((locate-library "w3m") 'w3m)
-       ((executable-find "w3m") 'w3m-standalone)
+       ((executable-find "w3m") (if (locate-library "w3m")
+                                    'w3m
+                                  'w3m-standalone))
        ((executable-find "links") 'links)
        ((executable-find "lynx") 'lynx)
        (t 'html2text))
        ((executable-find "links") 'links)
        ((executable-find "lynx") 'lynx)
        (t 'html2text))