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

2013-04-06 Thread Bastien
Eric Schulte 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 patch against the manu

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 o

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

2013-04-05 Thread Eric Schulte
Hi Gary, I agree. Gary Oberbrunner 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 all the ways to d

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-04 Thread Sebastien Vauban
Eric, Eric Schulte wrote: > "Sebastien Vauban" 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 it, or if

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

2013-04-04 Thread Eric Schulte
"Sebastien Vauban" 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 has simply >

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. >>

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

2013-04-03 Thread Eric Schulte
Carsten Dominik writes: > On 2.4.2013, at 23:54, Eric Schulte wrote: > >> Gary Oberbrunner 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 :

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 wrote: > Gary Oberbrunner 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 $in

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 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

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

2013-04-02 Thread Eric Schulte
Gary Oberbrunner 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: > > #+name: examp

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 "inpu

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

2013-04-01 Thread Eric Abrahamsen
Eric Schulte writes: > Eric Abrahamsen writes: > >> Gary Oberbrunner 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 thi

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

2013-04-01 Thread Eric Abrahamsen
Gary Oberbrunner 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 to work. > > I d

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

2013-04-01 Thread Mike Gauland
Gary Oberbrunner 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 artist fr

[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 call