summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfpi2018-04-13 21:57:47 +0200
committerfpi2018-04-13 22:20:30 +0200
commitce70fea17662ef584303ae91fcbec06194c5123e (patch)
treed3a61be0951f94e15d2c33e6babd8c80c4ab76e9
parentSpecified :gnuplot option (diff)
Proper session naming for blocks without :session arg
Diffstat (limited to '')
-rw-r--r--ob-spice.org3
1 files changed, 2 insertions, 1 deletions
diff --git a/ob-spice.org b/ob-spice.org
index 3924aeb..6ebfaf9 100644
--- a/ob-spice.org
+++ b/ob-spice.org
@@ -80,10 +80,11 @@ use batch mode
(defun org-babel-spice-initiate-session (&optional session _params)
"Initiate a ngspice session.
Create comint buffer SESSION running ngspice."
- (let ((sessionname (or session "spice")))
;; set default-directory to start process in other than current dir
(make-comint sessionname org-babel-spice-command)))
+ (let* ((sessionname (if (or (not session) (string= session "none"))
+ "spice" session))
(defun org-babel-prep-session:spice (session params)
"Prepare SESSION according to header arguments in PARAMS."
(let ((session (org-babel-spice-initiate-session session))