From d2684228847715d7616ef39a2744e84989fb05bd Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Wed, 8 Feb 2012 08:02:17 +0000 Subject: [PATCH] emacs: Check that the parent buffer is alive before using it. --- emacs/notmuch-show.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0