From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: [Announcement] Org-babel initial release Date: Tue, 15 Sep 2009 22:53:44 +0200 Message-ID: <873a6oaq07.fsf@gmx.de> References: <87pr9sazlr.fsf@gmx.de> <87ab0waukq.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 1Mnf28-00052T-B7 for emacs-orgmode@gnu.org; Tue, 15 Sep 2009 16:53:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mnf24-000528-OB for emacs-orgmode@gnu.org; Tue, 15 Sep 2009 16:53:52 -0400 Received: from [199.232.76.173] (port=35761 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mnf24-000525-LC for emacs-orgmode@gnu.org; Tue, 15 Sep 2009 16:53:48 -0400 Received: from mail.gmx.net ([213.165.64.20]:52251) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Mnf23-0002Ax-VW for emacs-orgmode@gnu.org; Tue, 15 Sep 2009 16:53:48 -0400 In-Reply-To: (Eric Schulte's message of "Tue, 15 Sep 2009 14:03:16 -0600") 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: Eric Schulte Cc: Org Mode "Eric Schulte" writes: > Sebastian Rose writes: > >> "Eric Schulte" writes: > >>> >>> Yes, currently the best way to get a feel for how to add languages would >>> be to start with an existing language file (I'd suggest >>> org-babel-python.el or org-babel-ruby.el, or for simpler less >>> comprehensive language support look at org-babel-ditaa or >>> org-babel-haskell) and make changes from there. I agree that a brief >>> tutorial for adding language support would be helpful. >> >> >> A skeleton maybe? >> And just a few comments describing the I/O of the basic functions >> (and/or the global vars/containers that take the results). >> >> > > Good idea, I'm attaching an org-babel-template.el file which tries to be > just that. I'd be interested to hear how it works for you, or if you > want to make any changes. Once there is a good version maybe it would > be a good thing to either add to the babel/lisp/langs directory, or at > least to post on Worg. Ahhh - now that I get simple output from PHP... simple already worked for my, by taking the org-babel-python.el, replacing org-babel-python-evaluate by org-babel-sh-evaluate and replace all `python' and `sh' by `php'. (OK - and wrap the `full-body' into `'). But then I screwed it up by replacing the modified org-babel-sh-evaluate by the org-babel-python-evaluate function again - now I don't get the results out... but I'm on the track. OK - I'll try the template. I need to understand the whole thing anyway :) Best wishes Sebastian