diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2021-01-10 15:00:41 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-01-13 06:57:41 -0400 |
| commit | d57ce9ca71c8f54c72fbb5a3da617d979557b1e2 (patch) | |
| tree | ebcc72b134c5c340f18ed957c44650486af4eb57 | |
| parent | 0afb3f8b21a190f05fa56e9f99bc01a4eb689651 (diff) | |
emacs: notmuch-start-notmuch-error-sentinel: assert buffer is alive
| -rw-r--r-- | emacs/notmuch-lib.el | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
