mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 23:41:38 -05:00
Run org-babel-after-execute-hook
after async execution finishes
This commit is contained in:
parent
8e9569ac3e
commit
ae7ef51607
1 changed files with 5 additions and 0 deletions
|
@ -490,6 +490,11 @@ PARAMS."
|
|||
(if (eq result-type 'output)
|
||||
(funcall add-result (mapconcat #'ansi-color-apply traceback "\n"))
|
||||
(funcall add-result (format "%s: %s" ename (ansi-color-apply evalue)))))
|
||||
(when async
|
||||
;; Run the hooks here instead of in the status message to prevent
|
||||
;; any delays
|
||||
(org-with-point-at block-beginning
|
||||
(run-hooks 'org-babel-after-execute-hook)))))
|
||||
'(:display-data :execute-result)
|
||||
(lambda (msg)
|
||||
(unless (eq result-type 'output)
|
||||
|
|
Loading…
Add table
Reference in a new issue