diff options
author | Ihor Radchenko <yantar92@gmail.com> | 2020-12-16 16:23:41 +0800 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2020-12-16 12:41:36 +0100 |
commit | baf1e7a6448133cf4c5fbbfb431a2865822117d8 (patch) | |
tree | b1d59b09329def1ebb0a97e6ace573916472a9fe | |
parent | 11d186a7014648600be4973b75a6d407aef1c6e0 (diff) | |
download | org-mode-baf1e7a6448133cf4c5fbbfb431a2865822117d8.tar.gz |
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.
-rw-r--r-- | lisp/ob-gnuplot.el | 3 |
1 files changed, 2 insertions, 1 deletions
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 |