From: Eli Zaretskii Date: Sat, 28 Nov 2020 17:05:18 +0000 (+0200) Subject: Fix filing messages when 'rmail-output-reset-deleted-flag' is non-nil X-Git-Tag: emacs-27.1.90~30 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2cdf1fd261128976c5769b7959e7b98e5425a3fd;p=emacs.git Fix filing messages when 'rmail-output-reset-deleted-flag' is non-nil * lisp/mail/rmailout.el (rmail-output): Fix off-by-one error in deciding when to advance to the next message under non-nil 'rmail-output-reset-deleted-flag'. (Bug#44839) --- diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 49531eab91e..cfde335b54f 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el @@ -579,7 +579,7 @@ from a non-Rmail buffer. In this case, COUNT is ignored." (progn (if rmail-delete-after-output (rmail-delete-message)) - (if (> count 0) + (if (>= count 0) (let ((msgnum rmail-current-message)) (rmail-next-message 1) (eq rmail-current-message (1+ msgnum)))))