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.
This commit is contained in:
Ihor Radchenko 2020-12-16 16:23:41 +08:00 committed by Bastien
parent 11d186a701
commit baf1e7a644
1 changed files with 2 additions and 1 deletions

View File

@ -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