From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Subject: Re: Code snippet for Message Sequence Diagram export Date: Mon, 17 May 2010 22:24:10 -0300 Message-ID: <20100518012410.GB27574@soloJazz.com> References: <20100516201839.GA25054@soloJazz.com> <87aarzq72u.wl%ucecesf@ucl.ac.uk> <20100517200431.GA27574@soloJazz.com> <87hbm6w2oh.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=42338 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEBXn-0008WR-TD for emacs-orgmode@gnu.org; Mon, 17 May 2010 21:24:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEBXb-0004S3-II for emacs-orgmode@gnu.org; Mon, 17 May 2010 21:24:22 -0400 Received: from cpoproxy1-pub.bluehost.com ([69.89.21.11]:60761 helo=outbound-mail-01.bluehost.com) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OEBXb-0004Rw-Af for emacs-orgmode@gnu.org; Mon, 17 May 2010 21:24:15 -0400 Content-Disposition: inline In-Reply-To: <87hbm6w2oh.fsf@stats.ox.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dan Davison Cc: Emacs-orgmode On Mon, May 17, 2010 at 07:04:14PM -0400, Dan Davison wrote: > Juan writes: > > Below goes code snippet using org-babel instead of org-export. ... > Thanks, we'd be pleased to include this in org-babel. First question is: > if you haven't already, can you sign FSF copyright transfer forms for > Emacs / Org-mode? > http://orgmode.org/worg/org-contribute.php I just sent the email to gnu.org > And a couple of little questions: > > - I think I'd prefer to get rid of the org-mscgen-path variable, and > simply require that mscgen is on the user's $PATH. Is that OK or am I > missing a reason for doing it differently? You're right. I'll get rid of it. That variable was inherited from both ditaa (which I used as a template) and my non-standard path (darwin-ports on mac). > - Is it definitely correct to automatically wrap the user's code in msg > { ... }? I initially fell into the trap of including that inside my > code block. I do not know the language; are there situations where the > desired mscgen code will not be generated by wrapping everything in a > msg { ... } block? All the mscgen script must go inside msg{ ... }. 1st version was an org-export block, so I felt OK not having to include that every time. But now that it's gone to org-babel -which is more source-code purist with the literate programming halo- I'd rather make the user include the complete mscgen source code. Eventually (version 2), it can be made optional (check if the msc{ } wrapper is not there and add it on the fly). > - If you are feeling energetic, it would be really nice to check the > exit code from the shell-command and use org-babel-error-notify if > necessary I'll look into it. Thank you for your support! Saludos, .j.