From: Richard M. Stallman Date: Sun, 16 Jan 1994 20:26:28 +0000 (+0000) Subject: (rmail-get-new-mail): Avoid error if file is empty. X-Git-Tag: emacs-19.34~10240 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=934111d04f68815eb7c9bb4e32d91b85e62b5ac7;p=emacs.git (rmail-get-new-mail): Avoid error if file is empty. Was done in 1994-01-14T18:35:09Z!rms@gnu.org: (rmail-set-message-counters): Avoid errors moving backwd if new file. --- diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 28ed6525200..bd788b78d8d 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -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)