From: David Edmondson Date: Wed, 8 Feb 2012 08:02:17 +0000 (+0000) Subject: emacs: Check that the parent buffer is alive before using it. X-Git-Tag: debian/0.12_rc1-1~85 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=d2684228847715d7616ef39a2744e84989fb05bd emacs: Check that the parent buffer is alive before using it. --- 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