changeset 111988:edfb54ff984c

nnimap.el (nnimap-wait-for-response): Fix the end-point calculation to really consider the last line.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Thu, 16 Dec 2010 23:18:57 +0000
parents bf3ad2811a81
children 9d22b2a0ae48
files lisp/gnus/ChangeLog lisp/gnus/nnimap.el
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Thu Dec 16 17:33:13 2010 -0500
+++ b/lisp/gnus/ChangeLog	Thu Dec 16 23:18:57 2010 +0000
@@ -1,3 +1,8 @@
+2010-12-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+	* nnimap.el (nnimap-wait-for-response): Fix the end-point calculation
+	to really consider the last line.
+
 2010-12-16  Daiki Ueno  <ueno@unixuser.org>
 
 	* auth-source.el (auth-source-gpg-encrypt-to): New variable to set the
--- a/lisp/gnus/nnimap.el	Thu Dec 16 17:33:13 2010 -0500
+++ b/lisp/gnus/nnimap.el	Thu Dec 16 23:18:57 2010 +0000
@@ -1565,10 +1565,11 @@
 			    (format "^%d .*\n" sequence)
 			    (if nnimap-streaming
 				(max (point-min)
-				     (- (point) 500)
-				     (save-excursion
-				       (forward-line -1)
-				       (point)))
+				     (min
+				      (- (point) 500)
+				      (save-excursion
+					(forward-line -1)
+					(point))))
 			      (point-min))
 			    t)))
 	    (when messagep