mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
emacs: Check that the parent buffer is alive before using it.
This commit is contained in:
parent
48766fca71
commit
d268422884
1 changed files with 1 additions and 1 deletions
|
@ -1704,7 +1704,7 @@ added."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(let ((parent-buffer notmuch-show-parent-buffer))
|
(let ((parent-buffer notmuch-show-parent-buffer))
|
||||||
(notmuch-kill-this-buffer)
|
(notmuch-kill-this-buffer)
|
||||||
(when parent-buffer
|
(when (buffer-live-p parent-buffer)
|
||||||
(switch-to-buffer parent-buffer)
|
(switch-to-buffer parent-buffer)
|
||||||
(notmuch-search-next-thread)
|
(notmuch-search-next-thread)
|
||||||
(if show-next
|
(if show-next
|
||||||
|
|
Loading…
Reference in a new issue