From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: using Cygwin Gnuplot with org-babel-gnuplot Date: Thu, 29 Sep 2011 06:55:33 -0600 Message-ID: <87vcsba4mg.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9GAk-0006pg-DV for emacs-orgmode@gnu.org; Thu, 29 Sep 2011 08:57:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9GAf-0000r4-Vi for emacs-orgmode@gnu.org; Thu, 29 Sep 2011 08:57:06 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:65448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9GAf-0000qz-QV for emacs-orgmode@gnu.org; Thu, 29 Sep 2011 08:57:01 -0400 Received: by yxi19 with SMTP id 19so701489yxi.0 for ; Thu, 29 Sep 2011 05:57:01 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alexander Vorobiev Cc: emacs-orgmode@gnu.org Alexander Vorobiev 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/