]> git.eshelyaron.com Git - emacs.git/commitdiff
(pmail-summary-expunge-and-save): Use pmail-expunge-and-save.
authorChong Yidong <cyd@stupidchicken.com>
Thu, 22 Jan 2009 04:49:41 +0000 (04:49 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 22 Jan 2009 04:49:41 +0000 (04:49 +0000)
lisp/mail/pmailsum.el

index a46b55156ed47b31ba433a94e8b6ab916295fdfb..8428857ef93bd766d8b890b155b86c7afb939db4 100644 (file)
@@ -1314,13 +1314,8 @@ Position it according to WHERE which can be BEG or END"
   "Expunge and save PMAIL file."
   (interactive)
   (save-excursion
-    (set-buffer pmail-buffer)
-    (when (pmail-expunge-confirmed)
-      (pmail-only-expunge)))
+    (pmail-expunge-and-save))
   (pmail-update-summary)
-  (save-excursion
-    (set-buffer pmail-buffer)
-    (save-buffer))
   (set-buffer-modified-p nil))
 
 (defun pmail-summary-get-new-mail (&optional file-name)