delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/01/27/16:49:26

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; q=dns; s=default; b=TZzz/E6fA9/XZ31sDqvCcGIhturc1
nfccclU+byFkgg67jl4z+kJj4XRdk7BABiEZocBN57btpn4ME835Tu7PSIdNwfUT
qjXa3okAGngwFotrs9qHOwWC/ZL4AaVI7kKPOaqBW96DFZ+hTdc4Jno2Chucsstr
slPLvSyuGJ8j+k=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; s=default; bh=GsoestpTbZl/N48Oj9IKmtl9EE4=; b=yTR
tKFEsUDvgubGKslC6qdQ+YKBKELAZtKnwRdRGkEIDmHPD9whr/+t2nsN+8gLCsCW
FeKnN1pRkVbknj3k9d8uMLOJxBMX8klirv+/VL1IclD+XoecQn6XgEoXih+0OOt0
4SmvD6Qz7a2DDViMPyt4B7oEQIb9ZQebWHnf43Q8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=youd, you'd, UD:png
X-HELO: NAM05-DM3-obe.outbound.protection.outlook.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8yUNcf1+8I0iitUJI53aA40uTjYKBYuOkMz/BpKQmgA=; b=f6u34CQ6ZiEDI5mftk0IhiVUkXnKnyQw+Ts7F7FvOTv9V1DPwLvHSSWd3Cm47+ul+lDXN7nsqICmQ56zQd/9INpw+ukKapZi6c2Ps7hkJLn++3MPFD8uHe2yqujsSucJ8GcB+U9hZiW1p53QwdinoNuE+a2Er3eNdz6JfE5hnWU=
From: Ken Brown <kbrown AT cornell DOT edu>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: plantuml in emacs org-mode - Help!
Date: Sun, 27 Jan 2019 21:49:08 +0000
Message-ID: <fe97f5a7-4026-93fe-4bff-f449b75d360d@cornell.edu>
References: <CAJW=A+d=i--hx9t5BOLw2DmHHUfNUuh4KF8vdXadXZ7idS48NA AT mail DOT gmail DOT com>
In-Reply-To: <CAJW=A+d=i--hx9t5BOLw2DmHHUfNUuh4KF8vdXadXZ7idS48NA@mail.gmail.com>
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown AT cornell DOT edu;
received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x0RLnPoB019533

On 1/27/2019 1:08 PM, Rob Torop wrote:
> I can't get embedded plantuml to work, and I'm *sure* it's a windows path
> kind of problem because I get
> 
>       *Could not find plantuml.jar at c:\cygwin64\home\  ....* *(see below
> for path)*
> 
> I can see where this arises in the source, and I'm sure I just need to
> change a few variables to have it work.  If you know how to do it, please
> let me know! What's odd is that the source seems to check the validity of
> the jar path only if system-type is not cygwin :-(
> 
> Specifically, I want to have something like
> 
> 
> *#+begin_src plantuml :file blah.png *
> *a->b*
> *#+end_src*
> 
> and then export to html using C-c  C-e h h (or show inline with C-c C-c)
> 
> In my .emacs, I  added *(plantuml . t)* to my list of babel languages to
> load, and I've got
> 
> *(setq  org-plantuml-jar-path
> "c:\\cygwin64\\home\\myid\lib\\plantuml.1.2018.8.jar")*
> 
> since when using cygwin, the jar is at ~/lib/plantuml.1.2018.8.jar

I think you'd be better off using a Posix path for org-plantuml-jar-path so that 
(file-exists-p org-plantuml-jar-path) will find the file.  Then, since java is a 
Windows program, you'd have to patch the elisp sources to convert the Posix path 
to a Windows path (via 'cygpath -w') in the call to java.

I can probably do this at some point and send the patch upstream, but I'm busy 
with other things at the moment and won't be able to get to it for a while.

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019