Commit 92a38267 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(rmail-summary-delete-forward): Move to next or prev msg

among those included in the summary.
parent 2cbaf886
......@@ -403,8 +403,13 @@ With prefix argument, delete and move backward."
(let (end)
(pop-to-buffer rmail-buffer)
(rmail-delete-forward backward)
(pop-to-buffer rmail-summary-buffer)))
(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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment