From: Jonas Bernoulli Date: Sun, 10 Jan 2021 14:00:41 +0000 (+0100) Subject: emacs: notmuch-start-notmuch-error-sentinel: assert buffer is alive X-Git-Tag: 0.32_rc0~158 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=d57ce9ca71c8f54c72fbb5a3da617d979557b1e2;p=notmuch emacs: notmuch-start-notmuch-error-sentinel: assert buffer is alive --- diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 76387779..21fa2582 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -956,7 +956,8 @@ status." (defun notmuch-start-notmuch-error-sentinel (proc event) (let ((buffer (process-get proc 'err-buffer))) - (kill-buffer buffer))) + (when (buffer-live-p buffer) + (kill-buffer buffer)))) (defvar-local notmuch-show-process-crypto nil)