Przeglądaj źródła

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

* lisp/ob-js.el (org-babel-execute:js): `indium-run-node' expects
  a command to run.
Nicolas Goaziou 7 lat temu
rodzic
commit
20b5d8aaec
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      lisp/ob-js.el

+ 3 - 3
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