emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Rick Moynihan <rick.moynihan@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: [Announcement] Org-babel initial release
Date: Tue, 15 Sep 2009 14:07:52 -0600	[thread overview]
Message-ID: <m2y6ogug2v.fsf@gmail.com> (raw)
In-Reply-To: <e85471e30909151056j17be861r6a0990a8b0c889a1@mail.gmail.com> (Rick Moynihan's message of "Tue, 15 Sep 2009 18:56:30 +0100")

Rick Moynihan <rick.moynihan@gmail.com> writes:

> Was having a similar idea, as I language I'd love to use with this is
> my current fave clojure:
> http://clojure.org/

Everyone I talk to seems to love clojure, I need to find an excuse to
use it myself.

> It's a language based on the JVM and consequently being able to pass
> in command line options to the interpreter is important...  I'd
> imagine most of the time the source blocks within a single file would
> share the vast majority of environment settings too (for example
> setting the JVM's class path) so being able to specify these values to
> pass to the interpreter, once at the top of the file would be really
> nice.

This should be easily implemented using a new header argument (languages
are free to define new header arguments as they see fit).  For an
example of a language passing command line options through header
arguments, see the org-babel-ditaa.el file which defines a :cmdline
header argument allowing arguments to be passed to the ditaa command as
in the example below where the -r and -S options are passed to the ditaa

--8<---------------cut here---------------start------------->8---
#+begin_src ditaa :file blue.png :cmdline -r -S
| cBLU    |
|         |
|    +----+
|    |cPNK|
|    |    |
--8<---------------cut here---------------end--------------->8---

Cheers -- Eric

> R.

  reply	other threads:[~2009-09-15 20:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-14 13:44 [Announcement] Org-babel initial release Eric Schulte
2009-09-15  8:20 ` Carsten Dominik
2009-09-15 13:31 ` Miguel Fernando Cabrera
2009-09-15 14:49   ` Eric Schulte
2009-09-15 15:10     ` Eric Schulte
2009-09-15 17:26 ` Sebastian Rose
2009-09-15 17:54   ` Eric Schulte
2009-09-15 19:15     ` Sebastian Rose
2009-09-15 20:03       ` Eric Schulte
2009-09-15 20:53         ` Sebastian Rose
2009-09-15 17:56   ` Rick Moynihan
2009-09-15 20:07     ` Eric Schulte [this message]
2009-09-15 22:02     ` Eric Schulte
2009-10-09 16:38       ` Marcelo de Moraes Serpa
2009-10-09 12:54 ` Org-babel for jython? Eric S Fraga
2009-10-09 15:34   ` Dan Davison

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:

  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=m2y6ogug2v.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rick.moynihan@gmail.com \


* 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


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).