Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-06 Thread Bastien
Eric Schulte schulte.e...@gmail.com writes: Alternately this could be a page on Worg, but I think it is important enough to be included in the manual. Agreed. In such cases, Worg can be used as a sand-box for fast writing and quick review by others. Then when the doc is mature enough, a

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-05 Thread Gary Oberbrunner
What I'd really like in the org-mode doc somewhere (or on worg?) is the babel syntax broken out like a traditional programming language, by which I mean describe the syntax[es] for *defining* a function in one place (including all the ways to define args and their default values), and describe the

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-05 Thread Eric Schulte
Hi Gary, I agree. Gary Oberbrunner ga...@oberbrunner.com writes: What I'd really like in the org-mode doc somewhere (or on worg?) is the babel syntax broken out like a traditional programming language, by which I mean describe the syntax[es] for *defining* a function in one place (including

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-05 Thread Andreas Röhler
Am 05.04.2013 18:31, schrieb Eric Schulte: [ ... ] Yea, this could be a simple note, e.g., the method by which variables are applied to code blocks are language-specific and determined by the semantics of the programming language of the code block, see Hi, still can't see the purpose of

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-04 Thread Sebastien Vauban
Hello Eric, Eric Schulte wrote: At this point I'm not sure if the documentation or the code should be amended. I've personally never liked the args-in-block-name syntax, but I don't recall if we formally decided to abandon it, or if it has simply been broken in a recent commit. I am not

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-04 Thread Eric Schulte
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hello Eric, Eric Schulte wrote: At this point I'm not sure if the documentation or the code should be amended. I've personally never liked the args-in-block-name syntax, but I don't recall if we formally decided to abandon it, or if it

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-04 Thread Sebastien Vauban
Eric, Eric Schulte wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Eric Schulte wrote: At this point I'm not sure if the documentation or the code should be amended. I've personally never liked the args-in-block-name syntax, but I don't recall if we formally decided to abandon

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-03 Thread Eric Schulte
Carsten Dominik carsten.domi...@gmail.com writes: On 2.4.2013, at 23:54, Eric Schulte schulte.e...@gmail.com wrote: Gary Oberbrunner ga...@oberbrunner.com writes: Aha -- you have to use the :var syntax on the begin_src line, not the params-in-parens syntax on the name line. Your version

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-02 Thread Eric Schulte
Gary Oberbrunner ga...@oberbrunner.com writes: Aha -- you have to use the :var syntax on the begin_src line, not the params-in-parens syntax on the name line. Your version works: #+name: example-block #+begin_src sh :var input= echo input is $input #+end_src but this doesn't:

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-02 Thread Andreas Röhler
Am 02.04.2013 23:54, schrieb Eric Schulte: Gary Oberbrunner ga...@oberbrunner.com writes: Aha -- you have to use the :var syntax on the begin_src line, not the params-in-parens syntax on the name line. Your version works: #+name: example-block #+begin_src sh :var input= echo input is

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-02 Thread Carsten Dominik
On 2.4.2013, at 23:54, Eric Schulte schulte.e...@gmail.com wrote: Gary Oberbrunner ga...@oberbrunner.com writes: Aha -- you have to use the :var syntax on the begin_src line, not the params-in-parens syntax on the name line. Your version works: #+name: example-block #+begin_src sh :var

[O] Org-mode as a metalanguage: calling SQL functions

2013-04-01 Thread Gary Oberbrunner
It seems like you can define procedures in org-mode and call them from elsewhere, with args. But I'm not sure how well-defined that process is; the documentation is not completely perfect yet I think. Here's one thing I'm trying that seems not to work. I define a procedure as a named ref called

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-01 Thread Mike Gauland
Gary Oberbrunner garyo at oberbrunner.com writes: Is this supposed to work? -- Gary I'm not sure how it's /supposed/ to work, either, but this example works for a sqlite database I've been playing with: #+NAME: artist #+BEGIN_SRC sqlite :db the_sound_A-Z.sql :var song_title= select

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-01 Thread Eric Abrahamsen
Gary Oberbrunner ga...@oberbrunner.com writes: It seems like you can define procedures in org-mode and call them from elsewhere, with args. But I'm not sure how well-defined that process is; the documentation is not completely perfect yet I think. Here's one thing I'm trying that seems not

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-01 Thread Eric Abrahamsen
Eric Schulte schulte.e...@gmail.com writes: Eric Abrahamsen e...@ericabrahamsen.net writes: Gary Oberbrunner ga...@oberbrunner.com writes: It seems like you can define procedures in org-mode and call them from elsewhere, with args. But I'm not sure how well-defined that process is; the

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-01 Thread Gary Oberbrunner
Aha -- you have to use the :var syntax on the begin_src line, not the params-in-parens syntax on the name line. Your version works: #+name: example-block #+begin_src sh :var input= echo input is $input #+end_src but this doesn't: #+name: example-block(input=) #+begin_src sh echo input is