aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar David Edmondson <dme@dme.org>2012-02-08 08:02:17 +0000
committerGravatar David Bremner <bremner@debian.org>2012-02-12 11:58:21 -0500
commitd2684228847715d7616ef39a2744e84989fb05bd (patch)
tree68008d1661da9a85257d1edec9414314d1018879 /emacs
parent48766fca71502fc5ff0cfc594758b6d2af47cb9d (diff)
emacs: Check that the parent buffer is alive before using it.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-show.el2
1 files changed, 1 insertions, 1 deletions
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