Mercurial > emacs
changeset 3100:eb6ae6faff24
(rmail-summary-mark-deleted): Check for end of buffer.
Pass t as NOWARN when calling rmail-summary-goto-msg.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 25 May 1993 21:20:08 +0000 |
parents | c45c28ce483c |
children | 9de5bf724302 |
files | lisp/mail/rmailsum.el |
diffstat | 1 files changed, 10 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/rmailsum.el Tue May 25 21:03:28 1993 +0000 +++ b/lisp/mail/rmailsum.el Tue May 25 21:20:08 1993 +0000 @@ -392,15 +392,16 @@ (rmail-summary-delete-forward t)) (defun rmail-summary-mark-deleted (&optional n undel) - (and n (rmail-summary-goto-msg n nil t)) - (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"))) + (and n (rmail-summary-goto-msg n t t)) + (or (eobp) + (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")))) (beginning-of-line)) (defun rmail-summary-mark-undeleted (n)