diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 33845d39..0b023a5c 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1704,7 +1704,7 @@ added." (interactive "P") (let ((parent-buffer notmuch-show-parent-buffer)) (notmuch-kill-this-buffer) - (when parent-buffer + (when (buffer-live-p parent-buffer) (switch-to-buffer parent-buffer) (notmuch-search-next-thread) (if show-next