(rmail-summary-expunge)
authorGerd Moellmann <gerd@gnu.org>
Mon, 4 Dec 2000 16:40:31 +0000 (16:40 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 4 Dec 2000 16:40:31 +0000 (16:40 +0000)
(rmail-summary-expunge-and-save): Ask for confirmation with
rmail-expunge-confirmed.

lisp/mail/rmailsum.el

index e500c7d..3069142 100644 (file)
@@ -1210,7 +1210,8 @@ move to the previous message."
   (interactive)
   (save-excursion
     (set-buffer rmail-buffer)
-    (rmail-only-expunge))
+    (when (rmail-confirm-expunge)
+      (rmail-only-expunge)))
   (rmail-update-summary))
 
 (defun rmail-summary-expunge-and-save ()
@@ -1218,7 +1219,8 @@ move to the previous message."
   (interactive)
   (save-excursion
     (set-buffer rmail-buffer)
-    (rmail-only-expunge))
+    (when (rmail-confirm-expunge)
+      (rmail-only-expunge)))
   (rmail-update-summary)
   (save-excursion
     (set-buffer rmail-buffer)