]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 e500c7d0e58087d8088ca7fe17f89de16825a443..3069142ede0e2bfcf1ea9884d731c5e1439785f8 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)