Simplify making jupyter-request objects when sending a message

This commit is contained in:
Nathaniel Nicandro 2018-02-03 19:16:16 -06:00
parent 80509f275c
commit 91da143fb1

View file

@ -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 ;; Anything sent to stdin is a reply not a request so don't add it to
;; `:pending-requests'. ;; `:pending-requests'.
(unless (eq (oref channel type) :stdin) (unless (eq (oref channel type) :stdin)
(let ((req (make-jupyter-request))) (let ((req (make-jupyter-request
(setf (jupyter-request-run-handlers-p req) :run-handlers-p (not jupyter-inhibit-handlers))))
(not jupyter-inhibit-handlers))
(jupyter--ioloop-push-request client req) (jupyter--ioloop-push-request client req)
req)))) req))))