aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShengHuo ZHU2001-11-06 04:28:29 +0000
committerShengHuo ZHU2001-11-06 04:28:29 +0000
commit76fd45b3525469ba023ea3dff2724e36d3e5a8ce (patch)
tree6a4dfd44b2bb326b31079ea86569a15257528dc9
parent0e6f60288f0c179e2200b63a6388fa912384dcdc (diff)
downloademacs-76fd45b3525469ba023ea3dff2724e36d3e5a8ce.tar.gz
emacs-76fd45b3525469ba023ea3dff2724e36d3e5a8ce.zip
2001-11-05 ShengHuo ZHU <zsh@cs.rochester.edu>
* mml.el (mml-generate-mime-1): Use mm-with-unibyte-current-buffer. Suggested by Dave Love <fx@gnu.org>.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/mml.el13
2 files changed, 14 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 9cef3e87de2..1bdb9103b46 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12001-11-05 ShengHuo ZHU <zsh@cs.rochester.edu>
2
3 * mml.el (mml-generate-mime-1): Use mm-with-unibyte-current-buffer.
4 Suggested by Dave Love <fx@gnu.org>.
5
12001-11-01 ShengHuo ZHU <zsh@cs.rochester.edu> 62001-11-01 ShengHuo ZHU <zsh@cs.rochester.edu>
2 7
3 * mm-util.el (mm-charset-synonym-alist): Revert (some). 8 * mm-util.el (mm-charset-synonym-alist): Revert (some).
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 87aff3e125c..0bfe652c0c1 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -305,6 +305,7 @@ If MML is non-nil, return the buffer up till the correspondent mml tag."
305 (setq type (or (cdr (assq 'type cont)) "text/plain")) 305 (setq type (or (cdr (assq 'type cont)) "text/plain"))
306 (if (and (not raw) 306 (if (and (not raw)
307 (member (car (split-string type "/")) '("text" "message"))) 307 (member (car (split-string type "/")) '("text" "message")))
308 (progn
308 (with-temp-buffer 309 (with-temp-buffer
309 (cond 310 (cond
310 ((cdr (assq 'buffer cont)) 311 ((cdr (assq 'buffer cont))
@@ -342,6 +343,9 @@ If MML is non-nil, return the buffer up till the correspondent mml tag."
342 (setq encoding (mm-body-encoding 343 (setq encoding (mm-body-encoding
343 charset (cdr (assq 'encoding cont)))))) 344 charset (cdr (assq 'encoding cont))))))
344 (setq coded (buffer-string))) 345 (setq coded (buffer-string)))
346 (mml-insert-mime-headers cont type charset encoding)
347 (insert "\n")
348 (insert coded))
345 (mm-with-unibyte-buffer 349 (mm-with-unibyte-buffer
346 (cond 350 (cond
347 ((cdr (assq 'buffer cont)) 351 ((cdr (assq 'buffer cont))
@@ -353,10 +357,11 @@ If MML is non-nil, return the buffer up till the correspondent mml tag."
353 (t 357 (t
354 (insert (cdr (assq 'contents cont))))) 358 (insert (cdr (assq 'contents cont)))))
355 (setq encoding (mm-encode-buffer type) 359 (setq encoding (mm-encode-buffer type)
356 coded (buffer-string)))) 360 coded (buffer-string)))
357 (mml-insert-mime-headers cont type charset encoding) 361 (mml-insert-mime-headers cont type charset encoding)
358 (insert "\n") 362 (insert "\n")
359 (insert coded))) 363 (mm-with-unibyte-current-buffer
364 (insert coded)))))
360 ((eq (car cont) 'external) 365 ((eq (car cont) 'external)
361 (insert "Content-Type: message/external-body") 366 (insert "Content-Type: message/external-body")
362 (let ((parameters (mml-parameter-string 367 (let ((parameters (mml-parameter-string