]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-summary-goto-msg): Don't call itself
authorEli Zaretskii <eliz@gnu.org>
Sat, 1 Nov 2003 16:38:55 +0000 (16:38 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 1 Nov 2003 16:38:55 +0000 (16:38 +0000)
recursively if the last message is deleted, thus avoiding an
infinite loop.

lisp/ChangeLog
lisp/mail/rmailsum.el

index 3388bee14271aba6423a4ab81f0c3a59f2bdaf09..051b572931e3ad1e8f7dd2348cf1124337628260 100644 (file)
@@ -1,3 +1,9 @@
+2003-11-01  Alexander Pohoyda  <alexander.pohoyda@gmx.net>  (tiny change)
+
+       * mail/rmailsum.el (rmail-summary-goto-msg): Don't call itself
+       recursively if the last message is deleted, thus avoiding an
+       infinite loop.
+
 2003-10-30  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * textmodes/tex-mode.el (tex-compile-commands): Add `yap' and `ps2pdf'.
index cd8d7d67aa467b9c44b79100e542cacc62a1a939..a49b47453d84093b73182ba73dcb0fcef915b5a0 100644 (file)
@@ -1074,7 +1074,8 @@ If SKIP-RMAIL, don't do anything to the Rmail buffer."
       (if (< n 1)
          (progn (message "No preceding message")
                 (setq n 1)))
-      (if (> n total)
+      (if (and (> n total)
+              (> total 0))
          (progn (message "No following message")
                 (goto-char (point-max))
                 (rmail-summary-goto-msg nil nowarn skip-rmail)))