diff options
| author | Chong Yidong | 2008-12-15 15:06:50 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-12-15 15:06:50 +0000 |
| commit | 97a424b85894aa746343787ff064301e4a86094c (patch) | |
| tree | 97254f03f29b3fefd571d67d9dcb8e6037dae525 | |
| parent | f520a2c629283929575ac14cf4d172e5cd88cd3b (diff) | |
| download | emacs-97a424b85894aa746343787ff064301e4a86094c.tar.gz emacs-97a424b85894aa746343787ff064301e4a86094c.zip | |
(pmail-search): Call pmail-swap-buffers-maybe.
| -rw-r--r-- | lisp/mail/pmail.el | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lisp/mail/pmail.el b/lisp/mail/pmail.el index 7b236f52418..89e8ab69037 100644 --- a/lisp/mail/pmail.el +++ b/lisp/mail/pmail.el | |||
| @@ -3128,9 +3128,16 @@ See also user-option `pmail-confirm-expunge'." | |||
| 3128 | "Erase deleted messages from Pmail file and summary buffer." | 3128 | "Erase deleted messages from Pmail file and summary buffer." |
| 3129 | (interactive) | 3129 | (interactive) |
| 3130 | (when (pmail-expunge-confirmed) | 3130 | (when (pmail-expunge-confirmed) |
| 3131 | (pmail-only-expunge dont-show) | 3131 | (let ((old-total pmail-total-messages) |
| 3132 | (if (pmail-summary-exists) | 3132 | (opoint (with-current-buffer pmail-buffer |
| 3133 | (pmail-select-summary (pmail-update-summary))))) | 3133 | (when pmail-buffers-swapped-p |
| 3134 | (point))))) | ||
| 3135 | (pmail-only-expunge dont-show) | ||
| 3136 | (if (pmail-summary-exists) | ||
| 3137 | (pmail-select-summary (pmail-update-summary)) | ||
| 3138 | (pmail-show-message pmail-current-message) | ||
| 3139 | (if (and (eq old-total pmail-total-messages) opoint) | ||
| 3140 | (goto-char opoint)))))) | ||
| 3134 | 3141 | ||
| 3135 | ;;;; *** Pmail Mailing Commands *** | 3142 | ;;;; *** Pmail Mailing Commands *** |
| 3136 | 3143 | ||