From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Vorobiev Subject: using Cygwin Gnuplot with org-babel-gnuplot Date: Wed, 28 Sep 2011 21:53:20 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R96kp-000761-MV for emacs-orgmode@gnu.org; Wed, 28 Sep 2011 22:53:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R96ko-00073J-So for emacs-orgmode@gnu.org; Wed, 28 Sep 2011 22:53:43 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:64560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R96ko-000737-Ni for emacs-orgmode@gnu.org; Wed, 28 Sep 2011 22:53:42 -0400 Received: by wwf10 with SMTP id 10so2473759wwf.0 for ; Wed, 28 Sep 2011 19:53:41 -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: emacs-orgmode@gnu.org 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