aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2008-12-09 23:23:05 +0000
committerChong Yidong2008-12-09 23:23:05 +0000
commit89f4fb7c0f2b8820bcca167e824a0727be23fa2d (patch)
tree9562a6c0a53023d3905d20935e992efe9cf69316
parentd1c0ec0d454693515285b194968d7725e5ab6094 (diff)
downloademacs-89f4fb7c0f2b8820bcca167e824a0727be23fa2d.tar.gz
emacs-89f4fb7c0f2b8820bcca167e824a0727be23fa2d.zip
(pmail-expunge): Pass new optional arg to pmail-only-expunge.
(pmail-expunge-and-save): Don't reset view buffer.
-rw-r--r--lisp/mail/pmail.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/mail/pmail.el b/lisp/mail/pmail.el
index a863acc6573..bbb5847665b 100644
--- a/lisp/mail/pmail.el
+++ b/lisp/mail/pmail.el
@@ -1495,7 +1495,7 @@ Create the buffer if necessary."
1495(defun pmail-expunge-and-save () 1495(defun pmail-expunge-and-save ()
1496 "Expunge and save PMAIL file." 1496 "Expunge and save PMAIL file."
1497 (interactive) 1497 (interactive)
1498 (pmail-expunge) 1498 (pmail-expunge t)
1499 (set-buffer pmail-buffer) 1499 (set-buffer pmail-buffer)
1500 (save-buffer) 1500 (save-buffer)
1501 (if (pmail-summary-exists) 1501 (if (pmail-summary-exists)
@@ -2889,7 +2889,7 @@ Ask the user whether to add that list name to `mail-mailing-lists'."
2889(defun pmail-swap-buffers-maybe () 2889(defun pmail-swap-buffers-maybe ()
2890 "Determine if the Pmail buffer is showing a message. 2890 "Determine if the Pmail buffer is showing a message.
2891If so restore the actual mbox message collection." 2891If so restore the actual mbox message collection."
2892 (unless (not pmail-buffers-swapped-p) 2892 (when pmail-buffers-swapped-p
2893 (with-current-buffer pmail-buffer 2893 (with-current-buffer pmail-buffer
2894 (buffer-swap-text pmail-view-buffer) 2894 (buffer-swap-text pmail-view-buffer)
2895 (setq pmail-buffers-swapped-p nil)))) 2895 (setq pmail-buffers-swapped-p nil))))
@@ -3572,11 +3572,11 @@ See also user-option `pmail-confirm-expunge'."
3572 (goto-char (+ (point-min) opoint)) 3572 (goto-char (+ (point-min) opoint))
3573 (goto-char (+ (point) opoint)))))) 3573 (goto-char (+ (point) opoint))))))
3574 3574
3575(defun pmail-expunge () 3575(defun pmail-expunge (&optional dont-show)
3576 "Erase deleted messages from Pmail file and summary buffer." 3576 "Erase deleted messages from Pmail file and summary buffer."
3577 (interactive) 3577 (interactive)
3578 (when (pmail-expunge-confirmed) 3578 (when (pmail-expunge-confirmed)
3579 (pmail-only-expunge) 3579 (pmail-only-expunge dont-show)
3580 (if (pmail-summary-exists) 3580 (if (pmail-summary-exists)
3581 (pmail-select-summary (pmail-update-summary))))) 3581 (pmail-select-summary (pmail-update-summary)))))
3582 3582