From 0f2bad27087f219b48a06a6b0f9ed8a78452a6f5 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 28 Jan 2012 10:01:05 +0800 Subject: [PATCH] * mail/rmail.el (rmail-mail-return): Only switch to live buffers. --- lisp/mail/rmail.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 813912f2e9b..7d4c7c15447 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -3620,7 +3620,7 @@ to switch to." (cond ((null rmail-flag) ;; If the Rmail buffer is not in the next window, switch ;; directly to the Rmail buffer specified by NEWBUF. - (if newbuf + (if (buffer-live-p newbuf) (switch-to-buffer newbuf))) ;; If the Rmail buffer is in the next window, switch to ;; the summary buffer if `mail-bury-selects-summary' is -- 2.11.4.GIT