From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [Patch] ob-ditaa.el for Cygwin Date: Fri, 12 Jul 2013 11:35:43 +0530 Message-ID: <87ehb42tzc.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxWSi-0003Sw-1U for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 02:04:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxWSh-00065N-6x for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 02:04:11 -0400 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]:53378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxWSh-00065B-0U for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 02:04:11 -0400 Received: by mail-pd0-f173.google.com with SMTP id v14so8235850pde.4 for ; Thu, 11 Jul 2013 23:04:10 -0700 (PDT) In-Reply-To: (Yujie Wen's message of "Fri, 12 Jul 2013 13:59:31 +0800") 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: Yujie Wen Cc: "emacs-orgmode@gnu.org Mode" Have your tried setting the *Windows* environment variable $HOME via Windows system settings to d:/cygwin/home/yujie? Yujie Wen writes: > Hi, > > ob-ditaa.el calls Java VM to generate pictures. Unfortunately, Cygwin > doesn't have native Java VM. In order to call the Windows native Java > VM properly, all Cygwin paths pointing to ditaa.jar, the temporary > input file and the output picture file must be changed to Windows > native paths, for example, /home/yujie/ditaa.jar to > d:/cygwin/home/yujie/ditaa.jar. > > Here is a patch that detect whether current Emacs is of Cygwin version > and, if so, add `cygpath -w ` to wrap all related pathes. > > Regards, > Yujie