]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-get-new-mail): Avoid error if file is empty.
authorRichard M. Stallman <rms@gnu.org>
Sun, 16 Jan 1994 20:26:28 +0000 (20:26 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 16 Jan 1994 20:26:28 +0000 (20:26 +0000)
Was done in 1994-01-14T18:35:09Z!rms@gnu.org:
(rmail-set-message-counters): Avoid errors moving backwd if new file.

lisp/mail/rmail.el

index 28ed65252001760cdaa3832ca4f194e55cb26586..bd788b78d8d446533384be309cea9bd206f3fca6 100644 (file)
@@ -696,7 +696,7 @@ argument causes us to read a file name and use that file as the inbox."
            (or (zerop new-messages)
                (let (success)
                  (widen)
-                 (search-backward "\n\^_")
+                 (search-backward "\n\^_" nil t)
                  (narrow-to-region (point) (point-max))
                  (goto-char (1+ (point-min)))
                  (rmail-count-new-messages)