Re: [O] Enabling another language in org-babel

2015-01-31 Thread Esa Palosaari
> Hi, > > thank you for the code! It would be very cool to have this working. > For some reason, the it returns only the command (for example > ".display 2 + 2" and the stata shell start screen) instead > of the results ("4"). I use Stata-SE 12.1. Any guesses what might > be causing this? >

Re: [O] Enabling another language in org-babel

2015-01-31 Thread Esa Palosaari
Ista Zahn gmail.com> writes: > > I've made the suggested changes, with the exception of the "part of > Emacs bit", as this should go in contrib not core. Hi, thank you for the code! It would be very cool to have this working. For some reason, the it returns only the command (for example ".

Re: [O] Enabling another language in org-babel

2014-07-31 Thread Ista Zahn
On Thu, Jul 31, 2014 at 6:52 AM, Bastien wrote: > Hi Ista, > > Ista Zahn writes: > >> I asked Bastien privately about getting access to the git repository, >> but will ask here as well: When I run 'git clone >> orgm...@orgmode.org:org-mode.git' I get a response saying >> >> "Permission denied (pu

Re: [O] Enabling another language in org-babel

2014-07-31 Thread Bastien
Hi Ista, Ista Zahn writes: > I asked Bastien privately about getting access to the git repository, > but will ask here as well: When I run 'git clone > orgm...@orgmode.org:org-mode.git' I get a response saying > > "Permission denied (publickey). > fatal: Could not read from remote repository" T

Re: [O] Enabling another language in org-babel

2014-07-31 Thread Jay Kerns
Dear Ista, I don't know if Bastien has already responded to your private message (if so, please disregard this), but for what it's worth, it looks like you are doing everything right to me. I am not an org-mode developer so I can't speak with 100% certainty, but it looks like a permissions issue

Re: [O] Enabling another language in org-babel

2014-07-30 Thread Achim Gratz
Ista Zahn writes: > I've made the suggested changes, with the exception of the "part of > Emacs bit", as this should go in contrib not core. > > I asked Bastien privately about getting access to the git repository, > but will ask here as well: When I run 'git clone > orgm...@orgmode.org:org-mode.g

Re: [O] Enabling another language in org-babel

2014-07-30 Thread Nick Dokos
Ista Zahn writes: > I asked Bastien privately about getting access to the git repository, > but will ask here as well: When I run 'git clone > orgm...@orgmode.org:org-mode.git' I get a response saying > > "Permission denied (publickey). > fatal: Could not read from remote repository" > > Does tha

Re: [O] Enabling another language in org-babel

2014-07-30 Thread Ista Zahn
I've made the suggested changes, with the exception of the "part of Emacs bit", as this should go in contrib not core. I asked Bastien privately about getting access to the git repository, but will ask here as well: When I run 'git clone orgm...@orgmode.org:org-mode.git' I get a response saying

Re: [O] Enabling another language in org-babel

2014-07-29 Thread Bastien
Hi Ista, some comments on the code below. Ista Zahn writes: > ;; Copyright (C) 2014 Ista Zahn > ;; Author: Ista Zahn, based on ob-julia.el by G. Jay Kerns, and ob-R.el > ;; by Eric Schulte and Dan Davison You need to reformat this -- see files with multiple authors in Org or in Emacs. > ;; Th

Re: [O] Enabling another language in org-babel

2014-07-28 Thread Ista Zahn
Hi all, Please find code attached that implements stata support in org-babel. The attached ob-stata.el is a modified version of ob-julia.el. It currently supports evaluation of stata code from babel code blocks with ':results output' (and this has been set as the default). Neither ':results value'

Re: [O] Enabling another language in org-babel

2014-07-28 Thread Bastien
Hi Ista, Ista Zahn writes: > I don't know if this is ready for contrib yet (though I don't object > if you think it is). I'm not sure what quality standards exist for > contrib, but this is really quick and dirty; it would be nice to at > least implement graphics support. On the other hand its b

Re: [O] Enabling another language in org-babel

2014-06-25 Thread Ista Zahn
Hi Bastien, I don't know if this is ready for contrib yet (though I don't object if you think it is). I'm not sure what quality standards exist for contrib, but this is really quick and dirty; it would be nice to at least implement graphics support. On the other hand its better than nothing, so ma

Re: [O] Enabling another language in org-babel

2014-06-25 Thread Bastien
Hi Ista, Ista Zahn writes: > The code is available at > https://gist.github.com/izahn/5745dcf6dd07a6b05084 Looks good -- would you like to add it to the contrib/ directory in Org's repository? As for the original question, I think it would be a nice addition, let's put it somewhere on our coll

Re: [O] Enabling another language in org-babel

2014-06-24 Thread G. Jay Kerns
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 > twe

Re: [O] Enabling another language in org-babel

2014-06-24 Thread Ista Zahn
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 some

Re: [O] Enabling another language in org-babel

2014-06-24 Thread Rainer M Krug
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

Re: [O] Enabling another language in org-babel

2014-06-24 Thread Eric Schulte
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

[O] Enabling another language in org-babel

2014-06-24 Thread Brendan Halpin
Does there exist any documentation on extending org-babel to another language? Relatedly, is anyone working on adding Stata coverage to org-babel? Regards, Brendan -- Brendan Halpin, Head, Department of Sociology, University of Limerick, Ireland Tel: w +353-61-213147 f +353-61-202569 h +353-