Skip to content

Commit 3b7523a

Browse files
committed
ob-gnuplot: Fix stable file collision when converting data
* lisp/ob-gnuplot.el (org-babel-gnuplot-process-vars): Use cons cell of all the code block parameters and the actual assigned variable value to generate filename for storing the data. This fixes a scenario when code block has two or more variable assignments that were wrongly saved into the same file. Before the commit, only the last assigned variable value has been used by gnuplot for _all_ the variables.
1 parent 03543e1 commit 3b7523a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/ob-gnuplot.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ code."
9696
(if tablep val (mapcar 'list val)))
9797
;; Make temporary file name stable with respect to data.
9898
;; If we do not do it, :cache argument becomes useless.
99-
(org-babel-temp-stable-file params "gnuplot-")
99+
(org-babel-temp-stable-file (cons val params) "gnuplot-")
100100
params)
101101
(if (and (stringp val)
102102
(file-remote-p val) ;; check if val is a remote file

0 commit comments

Comments
 (0)