changeset 101661:26b8d12cf7a4

(rmail-reply): Handle empty folders.
author Glenn Morris <rgm@gnu.org>
date Fri, 30 Jan 2009 03:46:31 +0000
parents 782b6464073e
children e18d6fe1381d
files lisp/mail/rmail.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Fri Jan 30 03:45:51 2009 +0000
+++ b/lisp/mail/rmail.el	Fri Jan 30 03:46:31 2009 +0000
@@ -3282,6 +3282,8 @@
 prefix argument means ignore them.  While composing the reply,
 use \\[mail-yank-original] to yank the original message into it."
   (interactive "P")
+  (if (zerop rmail-current-message)
+      (error "There is no message to reply to"))
   (let (from reply-to cc subject date to message-id references
 	     resent-to resent-cc resent-reply-to
 	     (msgnum rmail-current-message))