[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r100227: Synch with Gnus trunk.
From: |
Katsumi Yamaoka |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r100227: Synch with Gnus trunk. |
Date: |
Tue, 11 May 2010 04:44:44 +0000 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 100227 [merge]
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Tue 2010-05-11 04:44:44 +0000
message:
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.
modified:
lisp/gnus/ChangeLog
lisp/gnus/mm-extern.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog 2010-05-10 12:07:40 +0000
+++ b/lisp/gnus/ChangeLog 2010-05-11 04:43:46 +0000
@@ -1,3 +1,10 @@
+2010-05-11 Katsumi Yamaoka <address@hidden>
+
+ * mm-extern.el (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.
+
2010-05-10 Katsumi Yamaoka <address@hidden>
* mm-util.el (mm-emacs-mule): Remove.
=== modified file 'lisp/gnus/mm-extern.el'
--- a/lisp/gnus/mm-extern.el 2010-01-13 08:35:10 +0000
+++ b/lisp/gnus/mm-extern.el 2010-05-11 04:43:46 +0000
@@ -67,9 +67,8 @@
(coding-system-for-read mm-binary-coding-system))
(unless url
(error "URL is not specified"))
- (mm-with-unibyte-current-buffer
- (mm-url-insert-file-contents url))
(mm-disable-multibyte)
+ (mm-url-insert-file-contents url)
(setq buffer-file-name name)))
(defun mm-extern-anon-ftp (handle)
@@ -125,7 +124,7 @@
(or access-type
(error "Couldn't find access type"))))
mm-extern-function-alist)))
- buf handles)
+ handles)
(unless func
(error "Access type (%s) is not supported" access-type))
(mm-with-part handle
@@ -136,8 +135,7 @@
(unless (bufferp (car handles))
(mm-destroy-parts handles)
(error "Multipart external body is not supported"))
- (save-excursion
- (set-buffer (setq buf (mm-handle-buffer handles)))
+ (with-current-buffer (mm-handle-buffer handles)
(let (good)
(unwind-protect
(progn
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r100227: Synch with Gnus trunk.,
Katsumi Yamaoka <=