aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2005-01-22 21:07:03 +0000
committerMiles Bader2005-01-22 21:07:03 +0000
commitddff82cf89b20912729a1483da3f28608b44115a (patch)
treea25c4831d61f3501cfaf4f8f8f755c6dff37752c /lisp
parentd9e7c622607bc74214ad5f9aa0eaa64d7a4eba55 (diff)
downloademacs-ddff82cf89b20912729a1483da3f28608b44115a.tar.gz
emacs-ddff82cf89b20912729a1483da3f28608b44115a.zip
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-47
Merge from gnus--rel--5.10 Patches applied: * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-4 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-5 Update from CVS: exi/gnus-faq.texi ([4.1]): Typo. * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-6 Update from CVS 2005-01-20 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/mm-decode.el (mm-insert-part): Switch the multibyteness of data which will be inserted according to the multibyteness of a buffer rather than the type of contents. Suggested by ARISAWA Akihiro <ari@mbf.ocn.ne.jp>. 2005-01-16 Xavier Maillard <zedek@gnu-rox.org> (tiny change) * man/gnus-faq.texi ([4.1]): Typo.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog7
-rw-r--r--lisp/gnus/mm-decode.el27
2 files changed, 12 insertions, 22 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 4eee8bcbbfc..77a600427e2 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,10 @@
12005-01-20 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * mm-decode.el (mm-insert-part): Switch the multibyteness of data
4 which will be inserted according to the multibyteness of a buffer
5 rather than the type of contents. Suggested by ARISAWA Akihiro
6 <ari@mbf.ocn.ne.jp>.
7
12005-01-05 Reiner Steib <Reiner.Steib@gmx.de> 82005-01-05 Reiner Steib <Reiner.Steib@gmx.de>
2 9
3 * spam.el (spam-face): New face. Don't use `gnus-splash-face' 10 * spam.el (spam-face): New face. Don't use `gnus-splash-face'
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index b167ea7d104..569890b8097 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -1,5 +1,5 @@
1;;; mm-decode.el --- Functions for decoding MIME things 1;;; mm-decode.el --- Functions for decoding MIME things
2;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 2;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
3;; Free Software Foundation, Inc. 3;; Free Software Foundation, Inc.
4 4
5;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 5;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
@@ -1032,27 +1032,10 @@ external if displayed external."
1032 1032
1033(defun mm-insert-part (handle) 1033(defun mm-insert-part (handle)
1034 "Insert the contents of HANDLE in the current buffer." 1034 "Insert the contents of HANDLE in the current buffer."
1035 (let ((cur (current-buffer))) 1035 (save-excursion
1036 (save-excursion 1036 (insert (if (mm-multibyte-p)
1037 (if (member (mm-handle-media-supertype handle) '("text" "message")) 1037 (mm-string-as-multibyte (mm-get-part handle))
1038 (with-temp-buffer 1038 (mm-get-part handle)))))
1039 (insert-buffer-substring (mm-handle-buffer handle))
1040 (prog1
1041 (mm-decode-content-transfer-encoding
1042 (mm-handle-encoding handle)
1043 (mm-handle-media-type handle))
1044 (let ((temp (current-buffer)))
1045 (set-buffer cur)
1046 (insert-buffer-substring temp))))
1047 (mm-with-unibyte-buffer
1048 (insert-buffer-substring (mm-handle-buffer handle))
1049 (prog1
1050 (mm-decode-content-transfer-encoding
1051 (mm-handle-encoding handle)
1052 (mm-handle-media-type handle))
1053 (let ((temp (current-buffer)))
1054 (set-buffer cur)
1055 (insert-buffer-substring temp))))))))
1056 1039
1057(defun mm-file-name-delete-whitespace (file-name) 1040(defun mm-file-name-delete-whitespace (file-name)
1058 "Remove all whitespace characters from FILE-NAME." 1041 "Remove all whitespace characters from FILE-NAME."