emacs: notmuch-start-notmuch-sentinel: assert buffer is alive

This commit is contained in:
Jonas Bernoulli 2021-01-10 15:00:42 +01:00 committed by David Bremner
parent d57ce9ca71
commit db0fd8e782

View file

@ -917,7 +917,8 @@ status."
(defun notmuch-start-notmuch-sentinel (proc event) (defun notmuch-start-notmuch-sentinel (proc event)
"Process sentinel function used by `notmuch-start-notmuch'." "Process sentinel function used by `notmuch-start-notmuch'."
(let* ((err-buffer (process-get proc 'err-buffer)) (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)))) (with-current-buffer err-buffer (buffer-string))))
(sub-sentinel (process-get proc 'sub-sentinel)) (sub-sentinel (process-get proc 'sub-sentinel))
(real-command (process-get proc 'real-command))) (real-command (process-get proc 'real-command)))