X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=0b023a5c75d71130a0f702b9f0302a5b9fca5e9e;hp=33845d3972cc62f58849813add8f850d517b1be1;hb=d2684228847715d7616ef39a2744e84989fb05bd;hpb=48766fca71502fc5ff0cfc594758b6d2af47cb9d;ds=sidebyside 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