Re: [O] org babel support for tcl and awk

2011-05-26 Thread Sebastien Vauban
Hi Eric, Eric Schulte wrote: As you can see, I did not really mean any concurrent execution. Simply being able to execute parts of code in-situ, in the Org buffer, to document (and test) what I'm writing. And to be able to assemble all the parts in one single script file, by the means of

Re: [O] org babel support for tcl and awk

2011-05-26 Thread Eric Schulte
Go for applying it! Great, happy it works. I've just pushed this up to the git repository. Thanks a lot, Eric, for your time. Its my pleasure. Best -- Eric Best regards, Seb -- Eric Schulte http://cs.unm.edu/~eschulte/

Re: [O] org babel support for tcl and awk

2011-05-26 Thread Eric Schulte
Eric Schulte schulte.e...@gmail.com writes: Eric S Fraga e.fr...@ucl.ac.uk writes: Eric Schulte schulte.e...@gmail.com writes: [...] As an example, I've worked up an very simple ob-awk.el file from ob-template.el, it is attached along with an example org-mode file which demonstrates its

Re: [O] org babel support for tcl and awk

2011-05-26 Thread Eric S Fraga
Eric Schulte schulte.e...@gmail.com writes: [...] I've now added ob-awk.el to the Org-mode core. The newest version incorporates some change inspired by recent work with Sebastien, notably :stdin is now its own header argument, rather than a special variable name. Best -- Eric Thanks

Re: [O] org babel support for tcl and awk

2011-05-25 Thread Sebastien Vauban
Hi Eric, Eric Schulte wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Eric Schulte wrote: Eric S Fraga e.fr...@ucl.ac.uk writes: I've made a quick change so that any variable named stdin is treated specially, in that, rather than using its value to replace strings of $stdin in the

Re: [O] org babel support for tcl and awk

2011-05-25 Thread Eric Schulte
* Conclusions As you can see, I did not really mean any concurrent execution. Simply being able to execute parts of code in-situ, in the Org buffer, to document (and test) what I'm writing. And to be able to assemble all the parts in one single script file, by the means of literate

[O] org babel support for tcl and awk

2011-05-24 Thread orgm...@h-rd.org
Hi, I am looking for support for Tcl (and AWK) for org-babel. Both have a supplied emacs mode and Tcl also has an inferior interpreter mode. I was trying to do it myself, however I am quite lost in the instructions. Is there someone with the knowledge and willingness to provide a

Re: [O] org babel support for tcl and awk

2011-05-24 Thread Eric Schulte
Hi, Are you aware of the ob-template.el file [1], which can be used as a jumping off point to simplify the addition of new languages? After globally replacing the term template with you language name, the only function that necessarily needs to be re-written is the main

Re: [O] org babel support for tcl and awk

2011-05-24 Thread Eric S Fraga
Eric Schulte schulte.e...@gmail.com writes: [...] As an example, I've worked up an very simple ob-awk.el file from ob-template.el, it is attached along with an example org-mode file which demonstrates its usage. Eric, this is great to see as I use awk quite often. What is involved in

Re: [O] org babel support for tcl and awk

2011-05-24 Thread orgm...@h-rd.org
Hi Eric, yes I am aware of op-template and tried to use it. However it was not clear to me how to proceed and I looked into ob-perl, ob-ruby, ob-scheme and ob-python. But it seemed to me they use a different structure than op-template and I was stuck. I also saw that the file

Re: [O] org babel support for tcl and awk

2011-05-24 Thread Eric Schulte
Eric S Fraga e.fr...@ucl.ac.uk writes: Eric Schulte schulte.e...@gmail.com writes: [...] As an example, I've worked up an very simple ob-awk.el file from ob-template.el, it is attached along with an example org-mode file which demonstrates its usage. Eric, this is great to see as I use

Re: [O] org babel support for tcl and awk

2011-05-24 Thread Sebastien Vauban
Hi Eric(s), Eric Schulte wrote: Eric S Fraga e.fr...@ucl.ac.uk writes: this is great to see as I use awk quite often. What is involved in extending this to be able to run an awk script on input from within the org file (output of another babel block, for instance, as my typical use of awk is

Re: [O] org babel support for tcl and awk

2011-05-24 Thread Eric Schulte
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Eric(s), Eric Schulte wrote: Eric S Fraga e.fr...@ucl.ac.uk writes: this is great to see as I use awk quite often. What is involved in extending this to be able to run an awk script on input from within the org file (output of another