diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2011-09-29 06:54:39 -0600 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2011-09-29 06:54:49 -0600 |
commit | dec0b8e975ca97e319ec946979d188b13cff0f41 (patch) | |
tree | 3932df7267f1f9ca69e72f1efd1a1e956660c769 | |
parent | 774f9cb8e63f9739207581b81710c8b6b8cf4d01 (diff) | |
download | org-mode-dec0b8e975ca97e319ec946979d188b13cff0f41.tar.gz |
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.
-rw-r--r-- | lisp/ob-gnuplot.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el index a83d665..c1e533a 100644 --- a/lisp/ob-gnuplot.el +++ b/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")) |