(defun pmail-expunge-and-save ()
"Expunge and save PMAIL file."
(interactive)
- (pmail-expunge)
+ (pmail-expunge t)
(set-buffer pmail-buffer)
(save-buffer)
(if (pmail-summary-exists)
(defun pmail-swap-buffers-maybe ()
"Determine if the Pmail buffer is showing a message.
If so restore the actual mbox message collection."
- (unless (not pmail-buffers-swapped-p)
+ (when pmail-buffers-swapped-p
(with-current-buffer pmail-buffer
(buffer-swap-text pmail-view-buffer)
(setq pmail-buffers-swapped-p nil))))
(goto-char (+ (point-min) opoint))
(goto-char (+ (point) opoint))))))
-(defun pmail-expunge ()
+(defun pmail-expunge (&optional dont-show)
"Erase deleted messages from Pmail file and summary buffer."
(interactive)
(when (pmail-expunge-confirmed)
- (pmail-only-expunge)
+ (pmail-only-expunge dont-show)
(if (pmail-summary-exists)
(pmail-select-summary (pmail-update-summary)))))
\f