aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2010-05-11 04:43:46 +0000
committerKatsumi Yamaoka2010-05-11 04:43:46 +0000
commit3d73e84152c941cc4a1e2de64926efd21710f535 (patch)
tree61cbaa8fd2a78a21de24dee7692cbed5c649b9fa
parentc88b05a9d69ee8d35e408d70a80538fdd13f1a3d (diff)
downloademacs-3d73e84152c941cc4a1e2de64926efd21710f535.tar.gz
emacs-3d73e84152c941cc4a1e2de64926efd21710f535.zip
Synch with Gnus trunk.
(mm-extern-url): Don't use mm-with-unibyte-current-buffer. (mm-extern-cache-contents): Use with-current-buffer instead of save-excursion + set-buffer.
-rw-r--r--lisp/gnus/ChangeLog7
-rw-r--r--lisp/gnus/mm-extern.el8
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 4460e9b6d0b..71dc9727b4a 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,10 @@
12010-05-11 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * mm-extern.el (mm-extern-url): Don't use
4 mm-with-unibyte-current-buffer.
5 (mm-extern-cache-contents): Use with-current-buffer instead of
6 save-excursion + set-buffer.
7
12010-05-10 Katsumi Yamaoka <yamaoka@jpl.org> 82010-05-10 Katsumi Yamaoka <yamaoka@jpl.org>
2 9
3 * mm-util.el (mm-emacs-mule): Remove. 10 * mm-util.el (mm-emacs-mule): Remove.
diff --git a/lisp/gnus/mm-extern.el b/lisp/gnus/mm-extern.el
index 1e3df3c4cff..f40f798789c 100644
--- a/lisp/gnus/mm-extern.el
+++ b/lisp/gnus/mm-extern.el
@@ -67,9 +67,8 @@
67 (coding-system-for-read mm-binary-coding-system)) 67 (coding-system-for-read mm-binary-coding-system))
68 (unless url 68 (unless url
69 (error "URL is not specified")) 69 (error "URL is not specified"))
70 (mm-with-unibyte-current-buffer
71 (mm-url-insert-file-contents url))
72 (mm-disable-multibyte) 70 (mm-disable-multibyte)
71 (mm-url-insert-file-contents url)
73 (setq buffer-file-name name))) 72 (setq buffer-file-name name)))
74 73
75(defun mm-extern-anon-ftp (handle) 74(defun mm-extern-anon-ftp (handle)
@@ -125,7 +124,7 @@
125 (or access-type 124 (or access-type
126 (error "Couldn't find access type")))) 125 (error "Couldn't find access type"))))
127 mm-extern-function-alist))) 126 mm-extern-function-alist)))
128 buf handles) 127 handles)
129 (unless func 128 (unless func
130 (error "Access type (%s) is not supported" access-type)) 129 (error "Access type (%s) is not supported" access-type))
131 (mm-with-part handle 130 (mm-with-part handle
@@ -136,8 +135,7 @@
136 (unless (bufferp (car handles)) 135 (unless (bufferp (car handles))
137 (mm-destroy-parts handles) 136 (mm-destroy-parts handles)
138 (error "Multipart external body is not supported")) 137 (error "Multipart external body is not supported"))
139 (save-excursion 138 (with-current-buffer (mm-handle-buffer handles)
140 (set-buffer (setq buf (mm-handle-buffer handles)))
141 (let (good) 139 (let (good)
142 (unwind-protect 140 (unwind-protect
143 (progn 141 (progn