瀏覽代碼

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.
Ihor Radchenko 4 年之前
父節點
當前提交
baf1e7a644
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ob-gnuplot.el

+ 2 - 1
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