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:
Alan Schmitt 2013-05-07 14:15:33 +02:00
parent 39becc6381
commit 706a546fcf
1 changed files with 3 additions and 3 deletions

View File

@ -103,9 +103,9 @@
(stringp session))
session
tuareg-interactive-buffer-name)))
(if (fboundp 'tuareg-run-process-if-needed)
(tuareg-run-process-if-needed org-babel-ocaml-command)
(tuareg-run-caml))
(save-window-excursion (if (fboundp 'tuareg-run-process-if-needed)
(tuareg-run-process-if-needed org-babel-ocaml-command)
(tuareg-run-caml)))
(get-buffer tuareg-interactive-buffer-name)))
(defun org-babel-variable-assignments:ocaml (params)