Function: rmail-summary-mark-deleted
rmail-summary-mark-deleted is a byte-compiled function defined in
rmailsum.el.gz.
Signature
(rmail-summary-mark-deleted &optional N UNDEL)
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmailsum.el.gz
(defun rmail-summary-mark-deleted (&optional n undel)
(and n (not (eq n (rmail-summary-msg-number)))
;; Since third arg is t, this only alters summary, not the Rmail buf.
(rmail-summary-goto-msg n t t))
(or (eobp)
(not (overlay-get rmail-summary-overlay 'face))
(let ((buffer-read-only nil))
(skip-chars-forward " ")
(skip-chars-forward "0-9")
(if undel
(if (looking-at "D")
(progn (delete-char 1) (insert " ")))
(delete-char 1)
(insert "D"))
;; Discard cached new summary line.
(when n
(with-current-buffer rmail-buffer
(aset rmail-summary-vector (1- n) nil)))))
(beginning-of-line))