From: Chong Yidong Date: Sat, 28 Jan 2012 02:01:05 +0000 (+0800) Subject: * mail/rmail.el (rmail-mail-return): Only switch to live buffers. X-Git-Tag: emacs-pretest-24.0.93~42 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0f2bad27087f219b48a06a6b0f9ed8a78452a6f5;p=emacs.git * mail/rmail.el (rmail-mail-return): Only switch to live buffers. --- 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