2001-09-02 Benjamin Rutt <brutt@bloomington.in.us>
authorSimon Josefsson <jas@extundo.com>
Mon, 3 Sep 2001 17:18:59 +0000 (17:18 +0000)
committerSimon Josefsson <jas@extundo.com>
Mon, 3 Sep 2001 17:18:59 +0000 (17:18 +0000)
* nnmbox.el (nnmbox-find-article): Fix infinite loop when
searching for an article that isn't in the mbox.

lisp/ChangeLog
lisp/nnmbox.el

index 75e9da1..e544a7e 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-02  Benjamin Rutt  <brutt@bloomington.in.us>
+
+       * nnmbox.el (nnmbox-find-article): Fix infinite loop when
+       searching for an article that isn't in the mbox.
+
 2001-09-02 23:12:48  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * nnslashdot.el (nnslashdot-retrieve-headers-1): Get references
index 596edce..3801100 100644 (file)
@@ -510,9 +510,9 @@ This variable is a virtual server slot.  See the Gnus manual for details.")
               (nnmbox-in-header-p (point)))
          (progn
            (goto-char (point-min))
-           (while (not found)
-             (setq found (and (search-forward art-string nil t)
-                              (nnmbox-in-header-p (point)))))
+           (while (and (not found)
+                       (search-forward art-string nil t))
+             (setq found (nnmbox-in-header-p (point))))
            found)))))
 
 (defun nnmbox-record-active-article (group-art)