aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2000-04-25 23:49:40 +0000
committerKenichi Handa2000-04-25 23:49:40 +0000
commitf03392a12d54e52f8f2332ec146de91992360144 (patch)
treea188b94d46a0d112b4b1ea4a566007f412c86298
parentfad95037768a949a677396a6b8340dc1d7e0875d (diff)
downloademacs-f03392a12d54e52f8f2332ec146de91992360144.tar.gz
emacs-f03392a12d54e52f8f2332ec146de91992360144.zip
(rmail-expunge): When there's no deleted messages,
do nothing.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/mail/rmail.el8
2 files changed, 7 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 676dc6e21c3..b4041dde8f6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,7 +1,7 @@
12000-04-26 Kenichi Handa <handa@etl.go.jp> 12000-04-26 Kenichi Handa <handa@etl.go.jp>
2 2
3 * mail/rmail.el (rmail-expunge): When there's no deleted messages, 3 * mail/rmail.el (rmail-expunge): When there are no deleted
4 do nothing. 4 messages, do nothing.
5 5
62000-04-26 Dave Love <fx@gnu.org> 62000-04-26 Dave Love <fx@gnu.org>
7 7
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 1aab4a4b4b2..cb18a9053c4 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -2683,9 +2683,11 @@ Deleted messages stay in the file until the \\[rmail-expunge] command is given."
2683(defun rmail-expunge () 2683(defun rmail-expunge ()
2684 "Erase deleted messages from Rmail file and summary buffer." 2684 "Erase deleted messages from Rmail file and summary buffer."
2685 (interactive) 2685 (interactive)
2686 (when (or (null rmail-confirm-expunge) 2686 (when (and (stringp rmail-deleted-vector)
2687 (funcall rmail-confirm-expunge 2687 (string-match "D" rmail-deleted-vector)
2688 "Erase deleted messages from Rmail file? ")) 2688 (or (null rmail-confirm-expunge)
2689 (funcall rmail-confirm-expunge
2690 "Erase deleted messages from Rmail file? ")))
2689 (rmail-only-expunge) 2691 (rmail-only-expunge)
2690 (if (rmail-summary-exists) 2692 (if (rmail-summary-exists)
2691 (rmail-select-summary 2693 (rmail-select-summary