ob-js: Fix `indium-run-node' call.

* lisp/ob-js.el (org-babel-execute:js): `indium-run-node' expects
  a command to run.
This commit is contained in:
Nicolas Goaziou 2018-04-02 23:45:29 +02:00
parent 174e9d1ec9
commit 20b5d8aaec
1 changed files with 3 additions and 3 deletions

View File

@ -89,12 +89,12 @@ This function is called by `org-babel-execute-src-block'"
(org-babel-eval
(format "%s %s" org-babel-js-cmd
(org-babel-process-file-name script-file)) "")))
;; Indium Node REPL
;; separate case because Indium REPL is not inherited from comint-mode
;; Indium Node REPL. Separate case because Indium
;; REPL is not inherited from Comint mode.
((string= session "*JS REPL*")
(require 'indium-repl)
(unless (get-buffer session)
(indium-run-node))
(indium-run-node org-babel-js-cmd))
(indium-eval full-body))
;; session evaluation
(t