From d57ce9ca71c8f54c72fbb5a3da617d979557b1e2 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Sun, 10 Jan 2021 15:00:41 +0100 Subject: [PATCH] emacs: notmuch-start-notmuch-error-sentinel: assert buffer is alive --- emacs/notmuch-lib.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)