summaryrefslogtreecommitdiff
path: root/lisp/gnus/mml.el
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2000-09-20 11:46:48 +0000
committerDave Love <fx@gnu.org>2000-09-20 11:46:48 +0000
commitce9401f30b839389617facbbeb10a8aab3a51ba9 (patch)
treeba504801ead5bcadc7977ed4620998c18157ae3b /lisp/gnus/mml.el
parent8320414c2babf66a2f95e909524552296585ab32 (diff)
downloademacs-ce9401f30b839389617facbbeb10a8aab3a51ba9.tar.gz
Merge from Gnus trunk.
Diffstat (limited to 'lisp/gnus/mml.el')
-rw-r--r--lisp/gnus/mml.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 86faed8aa53..1d71f4bc3a3 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -126,10 +126,7 @@ The function is called with one parameter, which is the generated part.")
warn t))
(setq raw (cdr (assq 'raw tag))
point (point)
- contents (if raw
- (mm-with-unibyte-current-buffer
- (mml-read-part (eq 'mml (car tag))))
- (mml-read-part (eq 'mml (car tag))))
+ contents (mml-read-part (eq 'mml (car tag)))
charsets (if raw nil
(mm-find-mime-charset-region point (point))))
(when (and (not raw) (memq nil charsets))
@@ -352,8 +349,7 @@ If MML is non-nil, return the buffer up till the correspondent mml tag."
coded (buffer-string))))
(mml-insert-mime-headers cont type charset encoding)
(insert "\n")
- (mm-with-unibyte-current-buffer
- (insert coded))))
+ (insert coded)))
((eq (car cont) 'external)
(insert "Content-Type: message/external-body")
(let ((parameters (mml-parameter-string
@@ -852,7 +848,12 @@ If RAW, don't highlight the article."
(replace-match "\n"))
(mml-to-mime)
(if raw
- (mm-disable-multibyte)
+ (when (fboundp 'set-buffer-multibyte)
+ (let ((s (buffer-string)))
+ ;; Insert the content into unibyte buffer.
+ (erase-buffer)
+ (mm-disable-multibyte)
+ (insert s)))
(let ((gnus-newsgroup-charset (car message-posting-charset)))
(run-hooks 'gnus-article-decode-hook)
(let ((gnus-newsgroup-name "dummy"))