* lpath.el: Bind w3m-safe-url-regexp.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 27 Feb 2004 11:48:34 +0000 (11:48 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 27 Feb 2004 11:48:34 +0000 (11:48 +0000)
* gnus-art.el (gnus-article-wash-html-with-w3m): Make the
 w3m-safe-url-regexp variable buffer-local and set it as the value of
 mm-w3m-safe-url-regexp.

* mm-view.el (mm-inline-text-html-render-with-w3m): Ditto.

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

index bad3364..dc29bf6 100644 (file)
@@ -1,5 +1,13 @@
 2004-02-27  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * lpath.el: Bind w3m-safe-url-regexp.
+
+       * gnus-art.el (gnus-article-wash-html-with-w3m): Make the
+       w3m-safe-url-regexp variable buffer-local and set it as the value
+       of mm-w3m-safe-url-regexp.
+
+       * mm-view.el (mm-inline-text-html-render-with-w3m): Ditto.
+
        * gnus-msg.el (gnus-setup-message): Ignore an article copy while
        parsing gnus-posting-styles when the message is not for replying.
 
index 1ec1207..84a6d24 100644 (file)
@@ -2409,12 +2409,10 @@ 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)
+  (set (make-local-variable 'w3m-safe-url-regexp) mm-w3m-safe-url-regexp)
   (save-restriction
     (narrow-to-region (point) (point-max))
-    (let ((w3m-safe-url-regexp (if mm-inline-text-html-with-images
-                                  nil
-                                "\\`cid:"))
-         w3m-force-redisplay)
+    (let (w3m-force-redisplay)
       (w3m-region (point-min) (point-max)))
     (when (and mm-inline-text-html-with-w3m-keymap
               (boundp 'w3m-minor-mode-map)
index 6851604..6985dcb 100644 (file)
@@ -29,7 +29,7 @@
              w3-meta-content-type-charset-regexp
              w3m-cid-retrieve-function-alist w3m-current-buffer
              w3m-display-inline-images w3m-meta-content-type-charset-regexp
-             w3m-minor-mode-map))
+             w3m-minor-mode-map w3m-safe-url-regexp))
 
 (if (featurep 'xemacs)
     (progn
index 9ea5f7f..2f6512c 100644 (file)
 (defun mm-inline-text-html-render-with-w3m (handle)
   "Render a text/html part using emacs-w3m."
   (mm-setup-w3m)
+  (set (make-local-variable 'w3m-safe-url-regexp) mm-w3m-safe-url-regexp)
   (let ((text (mm-get-part handle))
        (b (point))
        (charset (mail-content-type-get (mm-handle-type handle) 'charset)))
        (when charset
          (delete-region (point-min) (point-max))
          (insert (mm-decode-string text charset)))
-       (let ((w3m-safe-url-regexp mm-w3m-safe-url-regexp)
-             w3m-force-redisplay)
+       (let (w3m-force-redisplay)
          (w3m-region (point-min) (point-max)))
        (when (and mm-inline-text-html-with-w3m-keymap
                   (boundp 'w3m-minor-mode-map)