From mboxrd@z Thu Jan 1 00:00:00 1970 From: "G. Jay Kerns" Subject: Re: Enabling another language in org-babel Date: Tue, 24 Jun 2014 16:13:13 -0400 Message-ID: <53A9DBD9.6060807@gmail.com> References: <87ionqhelv.fsf@wivenhoe.ul.ie> <87lhsmefj9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzX5m-0007wu-0f for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 16:13:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzX5g-0007L9-Up for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 16:13:21 -0400 Received: from mail-ie0-x22d.google.com ([2607:f8b0:4001:c03::22d]:43854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzX5g-0007Js-PK for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 16:13:16 -0400 Received: by mail-ie0-f173.google.com with SMTP id y20so770100ier.18 for ; Tue, 24 Jun 2014 13:13:16 -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: Ista Zahn , Rainer M Krug Cc: emacs-orgmode , brendan.halpin@ul.ie, Eric Schulte Great work, Ista! Cheers, Jay -- G. Jay Kerns, Ph.D. Youngstown State University http://gkerns.people.ysu.edu/ On 06/24/14 15:52, Ista Zahn wrote: > 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