emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 3b7523acd0: ob-gnuplot: Fix stable file collision w


From: ELPA Syncer
Subject: [elpa] externals/org 3b7523acd0: ob-gnuplot: Fix stable file collision when converting data
Date: Tue, 19 Jul 2022 06:57:46 -0400 (EDT)

branch: externals/org
commit 3b7523acd00a36ca2310942e41907872802d74e4
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    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.
---
 lisp/ob-gnuplot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el
index c552986a3c..4c76bea198 100644
--- a/lisp/ob-gnuplot.el
+++ b/lisp/ob-gnuplot.el
@@ -96,7 +96,7 @@ code."
                 (if tablep val (mapcar 'list val)))
                ;; Make temporary file name stable with respect to data.
                ;; If we do not do it, :cache argument becomes useless.
-               (org-babel-temp-stable-file params "gnuplot-")
+               (org-babel-temp-stable-file (cons val params) "gnuplot-")
                params)
            (if (and (stringp val)
                     (file-remote-p val)  ;; check if val is a remote file



reply via email to

[Prev in Thread] Current Thread [Next in Thread]