Commit 0f2bad27 authored by Chong Yidong's avatar Chong Yidong
Browse files

* mail/rmail.el (rmail-mail-return): Only switch to live buffers.

parent d7a9e63b
...@@ -3620,7 +3620,7 @@ to switch to." ...@@ -3620,7 +3620,7 @@ to switch to."
(cond ((null rmail-flag) (cond ((null rmail-flag)
;; If the Rmail buffer is not in the next window, switch ;; If the Rmail buffer is not in the next window, switch
;; directly to the Rmail buffer specified by NEWBUF. ;; directly to the Rmail buffer specified by NEWBUF.
(if newbuf (if (buffer-live-p newbuf)
(switch-to-buffer newbuf))) (switch-to-buffer newbuf)))
;; If the Rmail buffer is in the next window, switch to ;; If the Rmail buffer is in the next window, switch to
;; the summary buffer if `mail-bury-selects-summary' is ;; the summary buffer if `mail-bury-selects-summary' is
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment