Do more cleanup after finishing Org src-block requests

* jupyter-org-client.el (jupyter-drop-request): Reset
  `org-babel-jupyter-current-src-block-params` if its value matches the dropped
  request's `block-params`.
This commit is contained in:
Nathaniel Nicandro 2020-03-12 21:40:00 -05:00
parent 4a899deddc
commit e6e9694f94

View file

@ -145,10 +145,15 @@ See also the docstring of `org-image-actual-width' for more details."
(member "silent" result-params))))))
(cl-call-next-method)))
(defvar org-babel-jupyter-current-src-block-params)
(cl-defmethod jupyter-drop-request ((_client jupyter-org-client)
(req jupyter-org-request))
(when (markerp (jupyter-org-request-marker req))
(set-marker (jupyter-org-request-marker req) nil)))
(set-marker (jupyter-org-request-marker req) nil))
(when (eq org-babel-jupyter-current-src-block-params
(jupyter-org-request-block-params req))
(setq org-babel-jupyter-current-src-block-params nil)))
(defvar org-babel-jupyter-session-clients) ; in ob-jupyter.el