mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
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:
parent
4a899deddc
commit
e6e9694f94
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue