jupyter-handle-message: Update execution-state for any status message

This commit is contained in:
Nathaniel Nicandro 2019-03-02 00:45:26 -06:00
parent 1f5c7743d5
commit 57e9af3a13
No known key found for this signature in database
GPG key ID: C34814B309DD06B8

View file

@ -796,13 +796,13 @@ are taken:
(pmsg-id (jupyter-message-parent-id msg))
(requests (oref client requests))
(req (gethash pmsg-id requests)))
(when (eq (jupyter-message-type msg) :status)
(oset client execution-state
(jupyter-message-get msg :execution_state)))
(if (not req)
(when (jupyter-get client 'jupyter-include-other-output)
(jupyter--run-handler-maybe client channel req msg))
(setf (jupyter-request-last-message req) msg)
(when (eq (jupyter-message-type msg) :status)
(oset client execution-state
(jupyter-message-get msg :execution_state)))
(unwind-protect
(jupyter--run-callbacks req msg)
(unwind-protect