Re: [O] using Cygwin Gnuplot with org-babel-gnuplot

2011-09-29 Thread Eric Schulte
Alexander Vorobiev alexander.vorob...@gmail.com writes:

 Hi,

 It is mentioned in
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html#sec-2_1
 that there were some problems with gnuplot on Windows machines. I came
 up with a small fix which makes it possible to use Cygwin version of
 gnuplot with org-mode. The change is in the org-babel-execute:gnuplot
 function where I added passing of optional argument to
 org-babel-process-file-name:

 before:
 (org-babel-process-file-name script-file

 after:
 (org-babel-process-file-name script-file t

 The argument forces the function not to add backslash prior to :
 character which prevented gnuplot from finding the script for
 execution. I hope somebody will find the fix useful. Unfortunately I
 don't know if the fix breaks anything on Unix/Linux/Mac.


Hi Alex,

I've added this change behind a guard so that it should only be applied
on windows systems.

Thanks for suggesting this fix!  Please let me know if my patch doesn't
work as expected.

Best -- Eric


 Thanks
 Alex Vorobiev


-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



[O] using Cygwin Gnuplot with org-babel-gnuplot

2011-09-28 Thread Alexander Vorobiev
Hi,

It is mentioned in
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html#sec-2_1
that there were some problems with gnuplot on Windows machines. I came
up with a small fix which makes it possible to use Cygwin version of
gnuplot with org-mode. The change is in the org-babel-execute:gnuplot
function where I added passing of optional argument to
org-babel-process-file-name:

before:
(org-babel-process-file-name script-file

after:
(org-babel-process-file-name script-file t

The argument forces the function not to add backslash prior to :
character which prevented gnuplot from finding the script for
execution. I hope somebody will find the fix useful. Unfortunately I
don't know if the fix breaks anything on Unix/Linux/Mac.

Thanks
Alex Vorobiev