]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-lib.el
emacs: notmuch-start-notmuch-error-sentinel: assert buffer is alive
[notmuch] / 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)