From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [Announcement] Org-babel initial release Date: Tue, 15 Sep 2009 14:07:52 -0600 Message-ID: References: <87pr9sazlr.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MneJr-0004NE-W7 for emacs-orgmode@gnu.org; Tue, 15 Sep 2009 16:08:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MneJn-0004Ik-4S for emacs-orgmode@gnu.org; Tue, 15 Sep 2009 16:08:07 -0400 Received: from [199.232.76.173] (port=54122 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MneJn-0004Ih-19 for emacs-orgmode@gnu.org; Tue, 15 Sep 2009 16:08:03 -0400 Received: from mail-px0-f171.google.com ([209.85.216.171]:46548) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MneJm-0001Yg-8u for emacs-orgmode@gnu.org; Tue, 15 Sep 2009 16:08:02 -0400 Received: by pxi1 with SMTP id 1so3664119pxi.1 for ; Tue, 15 Sep 2009 13:08:01 -0700 (PDT) In-Reply-To: (Rick Moynihan's message of "Tue, 15 Sep 2009 18:56:30 +0100") 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: Rick Moynihan Cc: Org Mode Rick Moynihan 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 command. --8<---------------cut here---------------start------------->8--- #+begin_src ditaa :file blue.png :cmdline -r -S +---------+ | cBLU | | | | +----+ | |cPNK| | | | +----+----+ #+end_src --8<---------------cut here---------------end--------------->8--- Cheers -- Eric > > R.