* mm-decode.el (mm-inline-text-html-with-images): New user option.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 28 Jan 2002 11:35:20 +0000 (11:35 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 28 Jan 2002 11:35:20 +0000 (11:35 +0000)
* mm-view.el (mm-inline-text-html-render-with-w3m): Bind the value
of `w3m-display-inline-images' with the value of
`mm-inline-text-html-with-images'.
From: TSUCHIYA Masatoshi <tsuchiya@namazu.org>.

* gnus-art.el (gnus-article-wash-html-with-w3m): Ditto.

lisp/ChangeLog
lisp/gnus-art.el
lisp/mm-decode.el
lisp/mm-view.el

index 17bfef5..9f4db7f 100644 (file)
@@ -1,10 +1,21 @@
+2002-01-28  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mm-decode.el (mm-inline-text-html-with-images): New user option.
+
+       * mm-view.el (mm-inline-text-html-render-with-w3m): Bind the value
+       of `w3m-display-inline-images' with the value of
+       `mm-inline-text-html-with-images'.
+       From: TSUCHIYA Masatoshi <tsuchiya@namazu.org>.
+
+       * gnus-art.el (gnus-article-wash-html-with-w3m): Ditto.
+
 2002-01-27  Richard M. Stallman  <rms@gnu.org>
 
        * time-date.el: Add autoload cookies.  Many doc fixes.
        (time-add): New function.
        (time-subtract): Renamed from subtract-time.
        (subtract-time): New alias for time-subtract.
-       
+
 2002-01-28  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-art.el (gnus-article-wash-html-with-w3m): Replace w3m to
index 26991d4..72050e3 100644 (file)
@@ -2089,7 +2089,8 @@ If READ-CHARSET, ask for a coding system."
 (defun gnus-article-wash-html-with-w3m ()
   "Wash the current buffer with emacs-w3m."
   (mm-setup-w3m)
-  (let ((w3m-safe-url-regexp "\\`cid:"))
+  (let ((w3m-safe-url-regexp "\\`cid:")
+       (w3m-display-inline-images mm-inline-text-html-with-images))
     (w3m-region (point) (point-max)))
   (setq mm-w3m-minor-mode t))
 
index 2181905..226fdb7 100644 (file)
@@ -109,6 +109,14 @@ and `mm-inline-text-html-render-with-w3m', which uses emacs-w3m."
                (function))
   :group 'mime-display)
 
+(defcustom mm-inline-text-html-with-images nil
+  "If non-nil, Gnus will allow retrieving images in the HTML contents
+with <img> tags.  It has no effect on Emacs/w3.  For emacs-w3m, the
+value of the option `w3m-display-inline-images' will be bound with
+this value."
+  :type 'boolean
+  :group 'mime-display)
+
 (defcustom mm-inline-media-tests
   '(("image/jpeg"
      mm-inline-image
index f22d064..9fc815f 100644 (file)
        (when charset
          (delete-region (point-min) (point-max))
          (insert (mm-decode-string text charset)))
-       (let ((w3m-safe-url-regexp "\\`cid:"))
+       (let ((w3m-safe-url-regexp "\\`cid:")
+             (w3m-display-inline-images mm-inline-text-html-with-images))
          (w3m-region (point-min) (point-max)))
        (setq mm-w3m-minor-mode t))
       (mm-handle-set-undisplayer