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.
(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)
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
(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)