From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ista Zahn Subject: Re: Enabling another language in org-babel Date: Tue, 24 Jun 2014 15:52:24 -0400 Message-ID: References: <87ionqhelv.fsf@wivenhoe.ul.ie> <87lhsmefj9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzWlr-00058d-Bv for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 15:52:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzWlq-0000d3-74 for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 15:52:47 -0400 Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:46039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzWlq-0000cr-0b for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 15:52:46 -0400 Received: by mail-ob0-f177.google.com with SMTP id uy5so891577obc.22 for ; Tue, 24 Jun 2014 12:52:44 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: "G. Jay Kerns" , emacs-orgmode , brendan.halpin@ul.ie, Eric Schulte I just hacked up a rudimentary ob-stata.el by replacing "julia" with "stata" in ob-julia.el by G. Jay Kerns (and making a few other minor tweaks). Only ":results output" works (no graphics, no :results value). In short it's in pretty rough shape, but it does work for some basic things. Perhaps someone with better emacs-lisp can polish it up. The code is available at https://gist.github.com/izahn/5745dcf6dd07a6b05084 Best, Ista On Tue, Jun 24, 2014 at 8:05 AM, Rainer M Krug wrote: > Eric Schulte writes: > >> Brendan Halpin writes: >> >>> Does there exist any documentation on extending org-babel to another >>> language? >>> >> >> Hi Brendan, >> >> There is a template [1] which may be filled out to add support for a new >> language. More generally simply defining a function named >> `org-babel-execute:foo' will cause babel to try to execute foo code >> blocks using that function. See the template for existing >> `org-babel-execute:*' functions. >> >>> >>> Relatedly, is anyone working on adding Stata coverage to org-babel? >>> >> >> I'm not but who knows. If you do add support for Stata please consider >> contributing it to Org-mode (see [2]). > > stata should be not to difficult to add, as ESS supports stata and I > would guess that most functions would be the same (or very similar) > > Cheers, > > Rainer > >> >> Best, >> Eric >> >>> >>> >>> Regards, >>> >>> Brendan >> >> >> Footnotes: >> [1] http://orgmode.org/w/worg.git/blob/HEAD:/org-contrib/babel/ob-template.el >> >> [2] http://orgmode.org/worg/org-contribute.html > > -- > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) > > Centre of Excellence for Invasion Biology > Stellenbosch University > South Africa > > Tel : +33 - (0)9 53 10 27 44 > Cell: +33 - (0)6 85 62 59 98 > Fax : +33 - (0)9 58 10 27 44 > > Fax (D): +49 - (0)3 21 21 25 22 44 > > email: Rainer@krugs.de > > Skype: RMkrug > > PGP: 0x0F52F982