From 20b5d8aaec5c8bd40a1eb454a3586126eac2f1c8 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 2 Apr 2018 23:45:29 +0200 Subject: [PATCH] ob-js: Fix `indium-run-node' call. * lisp/ob-js.el (org-babel-execute:js): `indium-run-node' expects a command to run. --- lisp/ob-js.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/ob-js.el b/lisp/ob-js.el index 1da29969a..32ae6a3d3 100644 --- a/lisp/ob-js.el +++ b/lisp/ob-js.el @@ -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