emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Juan <Pechiar@computer.org>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: Emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Code snippet for Message Sequence Diagram export
Date: Mon, 17 May 2010 22:24:10 -0300	[thread overview]
Message-ID: <20100518012410.GB27574@soloJazz.com> (raw)
In-Reply-To: <87hbm6w2oh.fsf@stats.ox.ac.uk>

On Mon, May 17, 2010 at 07:04:14PM -0400, Dan Davison wrote:
> Juan <Pechiar@computer.org> 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.

  reply	other threads:[~2010-05-18  1:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-16 20:18 Code snippet for Message Sequence Diagram export Juan
2010-05-17  8:13 ` Eric S Fraga
2010-05-17 20:04   ` Juan
2010-05-17 23:04     ` Dan Davison
2010-05-18  1:24       ` Juan [this message]
2010-05-23 22:43         ` Juan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100518012410.GB27574@soloJazz.com \
    --to=pechiar@computer.org \
    --cc=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).