emacs: Check that the parent buffer is alive before using it.

This commit is contained in:
David Edmondson 2012-02-08 08:02:17 +00:00 committed by David Bremner
parent 48766fca71
commit d268422884

View 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