From 91da143fb1dee86d378454b8e1f76720c2798b38 Mon Sep 17 00:00:00 2001 From: Nathaniel Nicandro Date: Sat, 3 Feb 2018 19:16:16 -0600 Subject: [PATCH] Simplify making `jupyter-request` objects when sending a message --- jupyter-client.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jupyter-client.el b/jupyter-client.el index 165c5f5..afa0544 100644 --- a/jupyter-client.el +++ b/jupyter-client.el @@ -269,9 +269,8 @@ sent message, see `jupyter-add-callback' and ;; Anything sent to stdin is a reply not a request so don't add it to ;; `:pending-requests'. (unless (eq (oref channel type) :stdin) - (let ((req (make-jupyter-request))) - (setf (jupyter-request-run-handlers-p req) - (not jupyter-inhibit-handlers)) + (let ((req (make-jupyter-request + :run-handlers-p (not jupyter-inhibit-handlers)))) (jupyter--ioloop-push-request client req) req))))