forked from mirrors/org-mode
Babel ocaml: fix bug where the first exported result would end up in the ocaml
buffer * lisp/ob-ocaml.el (org-babel-prep-session:ocaml): use `save-window-excursion' around the code starting the tuareg process.
This commit is contained in:
parent
39becc6381
commit
706a546fcf
|
@ -103,9 +103,9 @@
|
||||||
(stringp session))
|
(stringp session))
|
||||||
session
|
session
|
||||||
tuareg-interactive-buffer-name)))
|
tuareg-interactive-buffer-name)))
|
||||||
(if (fboundp 'tuareg-run-process-if-needed)
|
(save-window-excursion (if (fboundp 'tuareg-run-process-if-needed)
|
||||||
(tuareg-run-process-if-needed org-babel-ocaml-command)
|
(tuareg-run-process-if-needed org-babel-ocaml-command)
|
||||||
(tuareg-run-caml))
|
(tuareg-run-caml)))
|
||||||
(get-buffer tuareg-interactive-buffer-name)))
|
(get-buffer tuareg-interactive-buffer-name)))
|
||||||
|
|
||||||
(defun org-babel-variable-assignments:ocaml (params)
|
(defun org-babel-variable-assignments:ocaml (params)
|
||||||
|
|
Loading…
Reference in a new issue