diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2021-01-10 15:00:42 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-01-13 07:06:16 -0400 |
| commit | db0fd8e782914b3d7524b775d71a73651f4b4ed2 (patch) | |
| tree | c67c83eb8863f338cb86328335b20b54971d7807 | |
| parent | d57ce9ca71c8f54c72fbb5a3da617d979557b1e2 (diff) | |
emacs: notmuch-start-notmuch-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 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))) |
