changeset 9394:802381617d14

(rmail-delete-forward): Use rmail-select-summary.
author Richard M. Stallman <rms@gnu.org>
date Sat, 08 Oct 1994 04:12:07 +0000
parents 0bec3b6bac2f
children d954daf0a213
files lisp/mail/rmail.el
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Fri Oct 07 23:42:52 1994 +0000
+++ b/lisp/mail/rmail.el	Sat Oct 08 04:12:07 1994 +0000
@@ -1795,9 +1795,8 @@
   (rmail-set-attribute "deleted" t)
   (let ((del-msg rmail-current-message))
     (if (rmail-summary-exists)
-	(save-excursion
-	  (set-buffer rmail-summary-buffer)
-	  (rmail-summary-mark-deleted del-msg)))
+	(rmail-select-summary
+	 (rmail-summary-mark-deleted del-msg)))
     (prog1 (rmail-next-undeleted-message (if backward -1 1))
       (rmail-maybe-display-summary))))