aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-01-31 03:15:35 +0000
committerGlenn Morris2009-01-31 03:15:35 +0000
commitab383a615f145c03fa62cb469c3307b0df7be1fc (patch)
treeb1a3f94f85312f04095aadf0888ec9ce0e8dcf89
parent49e787c9e2d49f3bdcf8a287ea15bcbbd4a90fb9 (diff)
downloademacs-ab383a615f145c03fa62cb469c3307b0df7be1fc.tar.gz
emacs-ab383a615f145c03fa62cb469c3307b0df7be1fc.zip
(rmail-new-summary): Don't try to summarize an empty folder.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/mail/rmailsum.el5
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bcaa546ad75..338a9eb23ef 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12009-01-31 Glenn Morris <rgm@gnu.org> 12009-01-31 Glenn Morris <rgm@gnu.org>
2 2
3 * mail/rmailsum.el (rmail-new-summary): Don't try to summarize an empty
4 folder.
5
3 * mail/rmail.el (rmail-msg-is-pruned): New function. 6 * mail/rmail.el (rmail-msg-is-pruned): New function.
4 (rmail-toggle-header): Doc fix. Use rmail-msg-is-pruned. 7 (rmail-toggle-header): Doc fix. Use rmail-msg-is-pruned.
5 (rmail-reply): Set up to yank from the decoded message rather than the 8 (rmail-reply): Set up to yank from the decoded message rather than the
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 94cfa7b3df6..eb202721353 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -204,8 +204,9 @@ nil for FUNCTION means all messages."
204 (if (eq major-mode 'rmail-summary-mode) 204 (if (eq major-mode 'rmail-summary-mode)
205 (setq was-in-summary t)) 205 (setq was-in-summary t))
206 (with-current-buffer rmail-buffer 206 (with-current-buffer rmail-buffer
207 (setq mesg rmail-current-message 207 (if (zerop (setq mesg rmail-current-message))
208 rmail-summary-buffer (rmail-new-summary-1 desc redo func args))) 208 (error "No messages to summarize"))
209 (setq rmail-summary-buffer (rmail-new-summary-1 desc redo func args)))
209 ;; Now display the summary buffer and go to the right place in it. 210 ;; Now display the summary buffer and go to the right place in it.
210 (unless was-in-summary 211 (unless was-in-summary
211 (if (and (one-window-p) 212 (if (and (one-window-p)