From 03a8067e6ea9cfdfd07ffbf20ed37cd84f5e5b41 Mon Sep 17 00:00:00 2001 From: Nathaniel Nicandro Date: Fri, 29 Mar 2019 12:29:16 -0500 Subject: [PATCH] jupyter-handle-message: Only examine :execute-reply of owned requests --- jupyter-client.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyter-client.el b/jupyter-client.el index d8ce1fe..fc9fa3a 100644 --- a/jupyter-client.el +++ b/jupyter-client.el @@ -816,11 +816,11 @@ are taken: (requests (oref client requests)) (req (gethash pmsg-id requests))) ;; Update the state of the client - (cl-case (jupyter-message-type msg) + (pcase (jupyter-message-type msg) (:status (oset client execution-state (jupyter-message-get msg :execution_state))) - ((:execute-input :execute-reply) + ((or :execute-input (and (guard req) :execute-reply)) (oset client execution-count (1+ (jupyter-message-get msg :execution_count))))) (if (not req)