X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fmm-view.el;h=caee4f0150f2ea8fef66f11aafda4e7a89ed4600;hb=0f4d4864936932e6e425d28a5b8b5e92c41942a2;hp=19e017a8176aa6d83ff619470b0104e4570aefa9;hpb=0fc7cfe44d8a7e783f48ebd0a91a614f5a67842d;p=elisp%2Fgnus.git- diff --git a/lisp/mm-view.el b/lisp/mm-view.el index 19e017a..caee4f0 100644 --- a/lisp/mm-view.el +++ b/lisp/mm-view.el @@ -33,6 +33,9 @@ (autoload 'vcard-parse-string "vcard") (autoload 'vcard-format-string "vcard")) +;; Avoid byte compile warning. +(defvar gnus-article-mime-handles) + ;;; ;;; Functions for displaying various formats inline ;;; @@ -81,10 +84,12 @@ (save-restriction (narrow-to-region b (point)) (goto-char (point-min)) - (if (or (re-search-forward - w3-meta-content-type-charset-regexp nil t) - (re-search-forward - w3-meta-charset-content-type-regexp nil t)) + (if (or (and (boundp 'w3-meta-content-type-charset-regexp) + (re-search-forward + w3-meta-content-type-charset-regexp nil t)) + (and (boundp 'w3-meta-charset-content-type-regexp) + (re-search-forward + w3-meta-charset-content-type-regexp nil t))) (setq charset (w3-coding-system-for-mime-charset (buffer-substring-no-properties (match-beginning 2)