]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
emacs: Check that the parent buffer is alive before using it.
[notmuch] / 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