Mercurial > emacs
changeset 5370:45ed020959f1
(rmail-summary-delete-forward): Move to next or prev msg
among those included in the summary.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 30 Dec 1993 07:38:11 +0000 |
parents | 409c8dd33f42 |
children | 63aa7b7e42c5 |
files | lisp/mail/rmailsum.el |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/rmailsum.el Thu Dec 30 07:23:51 1993 +0000 +++ b/lisp/mail/rmailsum.el Thu Dec 30 07:38:11 1993 +0000 @@ -403,8 +403,13 @@ (let (end) (rmail-summary-goto-msg) (pop-to-buffer rmail-buffer) - (rmail-delete-forward backward) - (pop-to-buffer rmail-summary-buffer))) + (rmail-delete-message) + (let ((del-msg rmail-current-message)) + (pop-to-buffer rmail-summary-buffer) + (rmail-summary-mark-deleted del-msg) + (while (and (not (if backward (bobp) (eobp))) + (save-excursion (beginning-of-line) (looking-at " [0-9]+D"))) + (forward-line (if backward -1 1)))))) (defun rmail-summary-delete-backward () "Delete this message and move to previous nondeleted one.