]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Check that the parent buffer is alive before using it.
authorDavid Edmondson <dme@dme.org>
Wed, 8 Feb 2012 08:02:17 +0000 (08:02 +0000)
committerDavid Bremner <bremner@debian.org>
Sun, 12 Feb 2012 16:58:21 +0000 (11:58 -0500)
emacs/notmuch-show.el

index 33845d3972cc62f58849813add8f850d517b1be1..0b023a5c75d71130a0f702b9f0302a5b9fca5e9e 100644 (file)
@@ -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