aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-03-12 18:40:01 +0000
committerStefan Monnier2008-03-12 18:40:01 +0000
commit9c5fe825f7eda8816add3fd1a9bc6e34a3434db2 (patch)
treea72e6141171c79c3190ca468e05f5bf78831ef08
parentd4eb2b7e39d6b6ee1bee4be0b0d53a3f3202da5a (diff)
downloademacs-9c5fe825f7eda8816add3fd1a9bc6e34a3434db2.tar.gz
emacs-9c5fe825f7eda8816add3fd1a9bc6e34a3434db2.zip
(nnimap-retrieve-headers-progress): Use a unibyte temp buffer.
(nnimap-request-move-article): Use with-current-buffer.
-rw-r--r--lisp/gnus/ChangeLog3
-rw-r--r--lisp/gnus/nnimap.el7
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 21d531f59f7..f5d19f56bf9 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,8 @@
12008-03-12 Stefan Monnier <monnier@iro.umontreal.ca> 12008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * nnimap.el (nnimap-retrieve-headers-progress): Use a unibyte temp buffer.
4 (nnimap-request-move-article): Use with-current-buffer.
5
3 * mm-decode.el (mm-with-part): Set the buffer to unibyte before inserting 6 * mm-decode.el (mm-with-part): Set the buffer to unibyte before inserting
4 the handle-buffer's text, so the implicit multibyte->unibyte conversion 7 the handle-buffer's text, so the implicit multibyte->unibyte conversion
5 uses string-make-unibyte rather than string-as-unibyte. 8 uses string-make-unibyte rather than string-as-unibyte.
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index c1b7b888e9e..18c0e23f709 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -616,7 +616,9 @@ If EXAMINE is non-nil the group is selected read-only."
616 lines (imap-body-lines (imap-message-body imap-current-message)) 616 lines (imap-body-lines (imap-message-body imap-current-message))
617 chars (imap-message-get imap-current-message 'RFC822.SIZE))) 617 chars (imap-message-get imap-current-message 'RFC822.SIZE)))
618 (nnheader-insert-nov 618 (nnheader-insert-nov
619 (with-temp-buffer 619 ;; At this stage, we only have bytes, so let's use unibyte buffers
620 ;; to make it more clear.
621 (mm-with-unibyte-buffer
620 (buffer-disable-undo) 622 (buffer-disable-undo)
621 (insert headers) 623 (insert headers)
622 (let ((head (nnheader-parse-naked-head uid))) 624 (let ((head (nnheader-parse-naked-head uid)))
@@ -1552,8 +1554,7 @@ function is generally only called when Gnus is shutting down."
1552 ;; request the article only when the move is NOT internal 1554 ;; request the article only when the move is NOT internal
1553 (and (or move-is-internal 1555 (and (or move-is-internal
1554 (nnimap-request-article article group server)) 1556 (nnimap-request-article article group server))
1555 (save-excursion 1557 (with-current-buffer buf
1556 (set-buffer buf)
1557 (buffer-disable-undo (current-buffer)) 1558 (buffer-disable-undo (current-buffer))
1558 (insert-buffer-substring nntp-server-buffer) 1559 (insert-buffer-substring nntp-server-buffer)
1559 (setq result (eval accept-form)) 1560 (setq result (eval accept-form))