From: Jonas Bernoulli Date: Sun, 10 Jan 2021 14:00:42 +0000 (+0100) Subject: emacs: notmuch-start-notmuch-sentinel: assert buffer is alive X-Git-Tag: 0.32_rc0~157 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=db0fd8e782914b3d7524b775d71a73651f4b4ed2;hp=d57ce9ca71c8f54c72fbb5a3da617d979557b1e2 emacs: notmuch-start-notmuch-sentinel: assert buffer is alive --- diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 21fa2582..06ca8cdc 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -917,7 +917,8 @@ status." (defun notmuch-start-notmuch-sentinel (proc event) "Process sentinel function used by `notmuch-start-notmuch'." (let* ((err-buffer (process-get proc 'err-buffer)) - (err (and (not (zerop (buffer-size err-buffer))) + (err (and (buffer-live-p err-buffer) + (not (zerop (buffer-size err-buffer))) (with-current-buffer err-buffer (buffer-string)))) (sub-sentinel (process-get proc 'sub-sentinel)) (real-command (process-get proc 'real-command)))