# HG changeset patch # User Katsumi Yamaoka # Date 1292541537 0 # Node ID edfb54ff984c2fb7c71319a14df8db3cd50d7c5d # Parent bf3ad2811a819e98bbee2597a541fa126ce7113b nnimap.el (nnimap-wait-for-response): Fix the end-point calculation to really consider the last line. diff -r bf3ad2811a81 -r edfb54ff984c lisp/gnus/ChangeLog --- 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 + + * nnimap.el (nnimap-wait-for-response): Fix the end-point calculation + to really consider the last line. + 2010-12-16 Daiki Ueno * auth-source.el (auth-source-gpg-encrypt-to): New variable to set the diff -r bf3ad2811a81 -r edfb54ff984c lisp/gnus/nnimap.el --- 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