From df75fdb70d8836c4d60c4bd2529bff0690a6af7c Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 30 Jan 2009 03:46:31 +0000 Subject: [PATCH] (rmail-reply): Handle empty folders. --- lisp/mail/rmail.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 2b860df5e69..789ecd484d6 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -3282,6 +3282,8 @@ Normally include CC: to all other recipients of original message; 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)) -- 2.39.2