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

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

[elpa] externals/org baf1e7a 3/8: ob-gnuplot: Fix error on non-string :v


From: Stefan Monnier
Subject: [elpa] externals/org baf1e7a 3/8: ob-gnuplot: Fix error on non-string :var assignment
Date: Thu, 17 Dec 2020 18:39:46 -0500 (EST)

branch: externals/org
commit baf1e7a6448133cf4c5fbbfb431a2865822117d8
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Bastien <bzg@gnu.org>

    ob-gnuplot: Fix error on non-string :var assignment
    
    * lisp/ob-gnuplot.el (org-babel-gnuplot-process-vars): Consider that
    not all the variable values must be a string in :var assignments.
---
 lisp/ob-gnuplot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el
index d0cedb7..708ac97 100644
--- a/lisp/ob-gnuplot.el
+++ b/lisp/ob-gnuplot.el
@@ -94,7 +94,8 @@ code."
                      (tablep (or (listp first) (symbolp first))))
                 (if tablep val (mapcar 'list val)))
               (org-babel-temp-file "gnuplot-") params)
-           (if (and (file-remote-p val)  ;; check if val is a remote file
+           (if (and (stringp val)
+                    (file-remote-p val)  ;; check if val is a remote file
                     (file-exists-p val)) ;; call to file-exists-p is slow, 
maybe remove it
                (let* ((local-name (concat ;; create a unique filename to avoid 
multiple downloads
                                org-babel-temporary-directory



reply via email to

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