* mm-view.el (mm-inline-text-html-render-with-w3m): Bind
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 1 Feb 2002 08:14:09 +0000 (08:14 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 1 Feb 2002 08:14:09 +0000 (08:14 +0000)
`w3m-safe-url-regexp' with nil if `mm-inline-text-html-with-images'
is non-nil; bind `w3m-force-redisplay' with nil.

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

* mm-decode.el (mm-inline-text-html-with-images): Supplement docs.

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

index 12fbfad..fc66f0d 100644 (file)
@@ -1,3 +1,13 @@
+2002-02-01  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mm-view.el (mm-inline-text-html-render-with-w3m): Bind
+       `w3m-safe-url-regexp' with nil if `mm-inline-text-html-with-images'
+       is non-nil; bind `w3m-force-redisplay' with nil.
+
+       * gnus-art.el (gnus-article-wash-html-with-w3m): Ditto.
+
+       * mm-decode.el (mm-inline-text-html-with-images): Supplement docs.
+
 2002-01-31  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * nnfolder.el (nnfolder-request-replace-article): Unfold. Don't
index b11697c..695cceb 100644 (file)
@@ -2091,8 +2091,11 @@ If READ-CHARSET, ask for a coding system."
   (mm-setup-w3m)
   (save-restriction
     (narrow-to-region (point) (point-max))
-    (let ((w3m-safe-url-regexp "\\`cid:")
-         (w3m-display-inline-images mm-inline-text-html-with-images))
+    (let ((w3m-safe-url-regexp (if mm-inline-text-html-with-images
+                                  nil
+                                "\\`cid:"))
+         (w3m-display-inline-images mm-inline-text-html-with-images)
+         w3m-force-redisplay)
       (w3m-region (point-min) (point-max)))
     (when mm-inline-text-html-with-w3m-keymap
       (add-text-properties
index 3869519..f125b46 100644 (file)
@@ -113,7 +113,9 @@ and `mm-inline-text-html-render-with-w3m', which uses emacs-w3m."
   "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."
+this value.  In addition, the variable `w3m-safe-url-regexp' will be
+bound with the value nil if it is non-nil to make emacs-w3m show all
+images, however this behavior may be changed in the future."
   :type 'boolean
   :group 'mime-display)
 
index fedb714..789a11b 100644 (file)
@@ -250,8 +250,11 @@ will not be substituted.")
        (when charset
          (delete-region (point-min) (point-max))
          (insert (mm-decode-string text charset)))
-       (let ((w3m-safe-url-regexp "\\`cid:")
-             (w3m-display-inline-images mm-inline-text-html-with-images))
+       (let ((w3m-safe-url-regexp (if mm-inline-text-html-with-images
+                                      nil
+                                    "\\`cid:"))
+             (w3m-display-inline-images mm-inline-text-html-with-images)
+             w3m-force-redisplay)
          (w3m-region (point-min) (point-max)))
        (when mm-inline-text-html-with-w3m-keymap
          (add-text-properties