# HG changeset patch # User Henrik Enberg # Date 1137612456 0 # Node ID f400fb7ee08a9f370c0e347746a61d6a268e416c # Parent cfd79a3dbf7349ffe3c08c220a590ce53870a7f5 (rmail): Fix last fix. diff -r cfd79a3dbf73 -r f400fb7ee08a lisp/mail/rmail.el --- a/lisp/mail/rmail.el Wed Jan 18 12:15:47 2006 +0000 +++ b/lisp/mail/rmail.el Wed Jan 18 19:27:36 2006 +0000 @@ -843,7 +843,8 @@ ;; If new mail was found, display of the correct message was done ;; elsewhere. (unless new-mail - (rmail-show-message (rmail-first-unseen-message))) + (rmail-show-message (or (rmail-first-unseen-message) + rmail-total-messages))) (rmail-construct-io-menu) ;; Run any callbacks if the buffer was not in rmail-mode (if run-mail-hook