Commit 415a09fb authored by Miles Bader's avatar Miles Bader
Browse files

Merge from gnus--devo--0

parent e5e76c04
2007-12-05 Katsumi Yamaoka <>
* gnus-art.el (gnus-use-idna)
* gnus-start.el (gnus-site-init-file)
* message.el (message-use-idna)
* mm-uu.el (mm-uu-hide-markers)
* smiley.el (smiley-style): Revert changes that suppress warnings.
2007-12-05 Katsumi Yamaoka <>
* gnus-art.el (gnus-article-browse-html-parts): Add meta html tag to
specify charset to html source. Reported by Christoph Conrad
2007-12-05 Katsumi Yamaoka <>
* gnus-art.el (gnus-use-idna): Don't directly refer to the value of
idna-program in order to suppress byte compile warning issued by XEmacs
that came to byte compile the default value section of defcustom forms
* gnus-start.el (gnus-site-init-file): Don't directly refer to the
value of installation-directory.
* message.el (message-use-idna): Don't directly refer to the value of
* mm-uu.el (mm-uu-hide-markers): Don't directly call defined-colors.
* smiley.el (smiley-style): Don't directly call face-attribute.
2007-12-04 Reiner Steib <>
* gnus-group.el (gnus-group-highlight-line): Add FIXME.
......@@ -2802,8 +2802,37 @@ Recurse into multiparts."
(string-match "text/html" (car (mm-handle-type handle))))
(let ((tmp-file (mm-make-temp-file
;; Do we need to care for 8.3 filenames?
"mm-" nil ".html")))
(mm-save-part-to-file handle tmp-file)
"mm-" nil ".html"))
(charset (mail-content-type-get (mm-handle-type handle)
(if charset
;; Add a meta html tag to specify charset.
(insert (with-current-buffer (mm-handle-buffer handle)
(if (eq charset 'gnus-decoded)
(setq charset 'utf-8))
(setq charset (format "\
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=%s\">"
(goto-char (point-min))
(let ((case-fold-search t))
(cond (;; Don't modify existing meta tag.
(re-search-forward "\
<meta[\t\n\r ]+http-equiv=\"content-type\"[^>]+>"
nil t))
((re-search-forward "<head>[\t\n\r ]*" nil t)
(insert charset "\n"))
(re-search-forward "\
<html\\(?:[\t\n\r ]+[^>]+\\|[\t\n\r ]*\\)>[\t\n\r ]*"
nil t)
(insert "<head>\n" charset "\n</head>\n"))))
(mm-write-region (point-min) (point-max)
tmp-file nil nil nil 'binary t))
(mm-save-part-to-file handle tmp-file))
(add-to-list 'gnus-article-browse-html-temp-list tmp-file)
(add-hook 'gnus-summary-prepare-exit-hook
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment