+2004-03-01 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * lpath.el: Don't bind w3m-safe-url-regexp.
+
+ * gnus-art.el (gnus-article-wash-html-with-w3m): Don't make the
+ w3m-safe-url-regexp variable buffer-local.
+
+ * mm-view.el (mm-inline-text-html-render-with-w3m): Ditto.
+
2004-02-27 Simon Josefsson <jas@extundo.com>
* gnus-sum.el (gnus-move-group-prefix-function): Add, default to
(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-force-redisplay)
+ (let ((w3m-safe-url-regexp mm-w3m-safe-url-regexp)
+ 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-safe-url-regexp))
+ w3m-minor-mode-map))
(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-force-redisplay)
+ (let ((w3m-safe-url-regexp mm-w3m-safe-url-regexp)
+ w3m-force-redisplay)
(w3m-region (point-min) (point-max)))
(when (and mm-inline-text-html-with-w3m-keymap
(boundp 'w3m-minor-mode-map)