jupyter-repl-eval-string: Inhibit all handlers except for the status handler

This allows for the `execution-state` of the REPL to be updated and the
mode-line string of `jupyter-repl-interation-mode` to be properly updated.
This commit is contained in:
Nathaniel Nicandro 2018-10-18 12:46:55 -05:00
parent 67a3f997bd
commit 5179c4215c

View file

@ -2171,7 +2171,7 @@ to the above explanation."
(setq str (if silently (string-trim str)
(prog1 nil
(jupyter-repl-replace-cell-code str))))
(let* ((jupyter-inhibit-handlers (or (and silently t) '(:execute-result)))
(let* ((jupyter-inhibit-handlers '(not :status))
(req (jupyter-send-execute-request jupyter-current-client
:code str :store-history (unless silently t))))
(jupyter-add-callback req