]> git.cworth.org Git - notmuch/commitdiff
emacs: notmuch-start-notmuch-error-sentinel: assert buffer is alive
authorJonas Bernoulli <jonas@bernoul.li>
Sun, 10 Jan 2021 14:00:41 +0000 (15:00 +0100)
committerDavid Bremner <david@tethera.net>
Wed, 13 Jan 2021 10:57:41 +0000 (06:57 -0400)
emacs/notmuch-lib.el

index 76387779b031d81962da4a731d0b9f093e38524d..21fa25824373ced9c69b0a81953dcc8790f5a0b1 100644 (file)
@@ -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)