Browse Source

gnuplot, don't quote file names on Windows systems

  Thanks to Alex Vorobiev for suggesting this change

* lisp/ob-gnuplot.el (org-babel-execute:gnuplot): Don't quote file
  names on Windows systems.
Eric Schulte 6 years ago
parent
commit
dec0b8e975
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lisp/ob-gnuplot.el

+ 4 - 1
lisp/ob-gnuplot.el

@@ -148,7 +148,10 @@ This function is called by `org-babel-execute-src-block'."
                   (shell-command-to-string
 		   (format
 		    "gnuplot \"%s\""
-		    (org-babel-process-file-name script-file))))
+		    (org-babel-process-file-name
+		     script-file
+		     (if (member system-type '(cygwin windows-nt ms-dos))
+			 t nil)))))
             (message output))
         (with-temp-buffer
           (insert (concat body "\n"))