aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2007-08-27 04:01:49 +0000
committerMiles Bader2007-08-27 04:01:49 +0000
commit9b8801ec33b0d0c0bb0a98a1b2f533a0c0c00f3f (patch)
treef380f8752f31f207f3e7741d63a28c4bc33e27eb
parent619fb9ee822da1d92d8b7974b827dac6a918967f (diff)
downloademacs-9b8801ec33b0d0c0bb0a98a1b2f533a0c0c00f3f.tar.gz
emacs-9b8801ec33b0d0c0bb0a98a1b2f533a0c0c00f3f.zip
Merge from gnus--rel--5.10
Patches applied: * gnus--rel--5.10 (patch 246-247) - Update from CVS 2007-08-23 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/mml.el (mml-generate-mime): Make sure it uses multibyte temp buffer. (mml-generate-mime-1): Don't encode body if it is specified to be in raw form; don't make buffer be unibyte when inserting multibyte string. 2007-08-24 IRIE Tetsuya <irie@t.email.ne.jp> (tiny change) * man/message.texi (MIME): Replace mml-attach with mml-attach-file. Revision: emacs@sv.gnu.org/emacs--rel--22--patch-100
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/mml.el9
-rw-r--r--man/ChangeLog4
-rw-r--r--man/message.texi4
4 files changed, 16 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 3e234161c3e..0cf879fd264 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12007-08-23 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * mml.el (mml-generate-mime): Make sure it uses multibyte temp buffer.
4 (mml-generate-mime-1): Don't encode body if it is specified to be in
5 raw form; don't make buffer be unibyte when inserting multibyte string.
6
12007-08-23 Stefan Monnier <monnier@iro.umontreal.ca> 72007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * sha1.el: Fix up comment style. 9 * sha1.el: Fix up comment style.
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index dae746fa082..0c60bed409f 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -404,7 +404,7 @@ If MML is non-nil, return the buffer up till the correspondent mml tag."
404 (mml-multipart-number mml-multipart-number)) 404 (mml-multipart-number mml-multipart-number))
405 (if (not cont) 405 (if (not cont)
406 nil 406 nil
407 (with-temp-buffer 407 (mm-with-multibyte-buffer
408 (if (and (consp (car cont)) 408 (if (and (consp (car cont))
409 (= (length cont) 1)) 409 (= (length cont) 1))
410 (mml-generate-mime-1 (car cont)) 410 (mml-generate-mime-1 (car cont))
@@ -516,14 +516,13 @@ If MML is non-nil, return the buffer up till the correspondent mml tag."
516 (progn 516 (progn
517 (mm-enable-multibyte) 517 (mm-enable-multibyte)
518 (insert contents) 518 (insert contents)
519 (setq charset (mm-encode-body))) 519 (unless raw
520 (setq charset (mm-encode-body))))
520 (insert contents))))) 521 (insert contents)))))
521 (setq encoding (mm-encode-buffer type) 522 (setq encoding (mm-encode-buffer type)
522 coded (mm-string-as-multibyte (buffer-string)))) 523 coded (mm-string-as-multibyte (buffer-string))))
523 (mml-insert-mime-headers cont type charset encoding nil) 524 (mml-insert-mime-headers cont type charset encoding nil)
524 (insert "\n") 525 (insert "\n" coded))))
525 (mm-with-unibyte-current-buffer
526 (insert coded)))))
527 ((eq (car cont) 'external) 526 ((eq (car cont) 'external)
528 (insert "Content-Type: message/external-body") 527 (insert "Content-Type: message/external-body")
529 (let ((parameters (mml-parameter-string 528 (let ((parameters (mml-parameter-string
diff --git a/man/ChangeLog b/man/ChangeLog
index a9719d6d454..04ccb80f6e0 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,7 @@
12007-08-24 IRIE Tetsuya <irie@t.email.ne.jp> (tiny change)
2
3 * message.texi (MIME): Replace mml-attach with mml-attach-file.
4
12007-08-27 Richard Stallman <rms@gnu.org> 52007-08-27 Richard Stallman <rms@gnu.org>
2 6
3 * emacs.texi (Top): Clarify menu item for Glossary. 7 * emacs.texi (Top): Clarify menu item for Glossary.
diff --git a/man/message.texi b/man/message.texi
index eef4d77205a..2bca4b046e5 100644
--- a/man/message.texi
+++ b/man/message.texi
@@ -821,11 +821,11 @@ doesn't have to do anything to make the @acronym{MIME} happen---Message will
821automatically add the @code{Content-Type} and 821automatically add the @code{Content-Type} and
822@code{Content-Transfer-Encoding} headers. 822@code{Content-Transfer-Encoding} headers.
823 823
824@findex mml-attach 824@findex mml-attach-file
825@kindex C-c C-a 825@kindex C-c C-a
826The most typical thing users want to use the multipart things in 826The most typical thing users want to use the multipart things in
827@acronym{MIME} for is to add ``attachments'' to mail they send out. 827@acronym{MIME} for is to add ``attachments'' to mail they send out.
828This can be done with the @kbd{C-c C-a} command (@kbd{M-x mml-attach}), 828This can be done with the @kbd{C-c C-a} command (@kbd{M-x mml-attach-file}),
829which will prompt for a file name and a @acronym{MIME} type. 829which will prompt for a file name and a @acronym{MIME} type.
830 830
831@vindex mml-dnd-protocol-alist 831@vindex mml-dnd-protocol-alist