Re: [O] How do I chain babel blocks with arguments?

2014-04-23 Thread Eric Schulte
Alan Schmitt alan.schm...@polytechnique.org writes: Hi Eric, On 2014-04-22 13:30, Eric Schulte schulte.e...@gmail.com writes: Sorry, that's because the x should be z. See the following. #+name: z : bar #+name: test3 #+begin_src emacs-lisp :var x=foo x #+end_src #+RESULTS: test3 :

Re: [O] How do I chain babel blocks with arguments?

2014-04-22 Thread Alan Schmitt
Hi Eric, On 2014-04-20 03:41, Eric Schulte schulte.e...@gmail.com writes: --8---cut here---start-8--- #+name: z : bar #+name: test3 #+begin_src emacs-lisp :var x=foo x #+end_src #+name:test4 #+begin_src emacs-lisp :var y=test1(x=z) y #+end_src

Re: [O] How do I chain babel blocks with arguments?

2014-04-22 Thread Eric Schulte
Alan Schmitt alan.schm...@polytechnique.org writes: Hi Eric, On 2014-04-20 03:41, Eric Schulte schulte.e...@gmail.com writes: --8---cut here---start-8--- #+name: z : bar #+name: test3 #+begin_src emacs-lisp :var x=foo x #+end_src #+name:test4

Re: [O] How do I chain babel blocks with arguments?

2014-04-22 Thread Alan Schmitt
Hi Eric, On 2014-04-22 13:30, Eric Schulte schulte.e...@gmail.com writes: Sorry, that's because the x should be z. See the following. #+name: z : bar #+name: test3 #+begin_src emacs-lisp :var x=foo x #+end_src #+RESULTS: test3 : foo #+name:test4 #+begin_src emacs-lisp :var

Re: [O] How do I chain babel blocks with arguments?

2014-04-20 Thread Eric Schulte
Xebar Saram zelt...@gmail.com writes: Hi guys a related newbie question that occurred to me from reading this thread (sorry for crashing the thread :)). if i understand correctly from the above posts, is there a way to batch evaluate multiple org mode code blocks at once? My use case is

Re: [O] How do I chain babel blocks with arguments?

2014-04-19 Thread Eric Schulte
--8---cut here---start-8--- #+name: z : bar #+name: test3 #+begin_src emacs-lisp :var x=foo x #+end_src #+name:test4 #+begin_src emacs-lisp :var y=test1(x=z) y #+end_src #+results: test4 : bar #+call: test4(z=BAZ) ^ The above

Re: [O] How do I chain babel blocks with arguments?

2014-04-18 Thread Alan Schmitt
Hi Eric, On 2014-04-17 07:42, Eric Schulte schulte.e...@gmail.com writes: Alan Schmitt alan.schm...@polytechnique.org writes: How can I execute block `test1' from block `test2' by passing an argument that is one from test2? #+name: z : bar #+name: test1 #+begin_src emacs-lisp :var

Re: [O] How do I chain babel blocks with arguments?

2014-04-17 Thread Alan Schmitt
Hello Charles, On 2014-04-16 22:49, Charles Berry ccbe...@ucsd.edu writes: I have several babel blocks that each work well, but I'm now trying to chain them to build some bigger functionality out of them. I'm having trouble finding out how to pass arguments between blocks. Here is a small

Re: [O] How do I chain babel blocks with arguments?

2014-04-17 Thread Thorsten Jolitz
Alan Schmitt alan.schm...@polytechnique.org writes: #+name:test2 #+begin_src emacs-lisp :var z=bar (let ((y (org-sbe test1 (x (intern z) y) #+end_src Thank you for the suggestion, but it returns a symbol and not the string. In the more complex setting I'm playing with I need a

Re: [O] How do I chain babel blocks with arguments?

2014-04-17 Thread Alan Schmitt
On 2014-04-17 12:24, Thorsten Jolitz tjol...@gmail.com writes: Alan Schmitt alan.schm...@polytechnique.org writes: #+name:test2 #+begin_src emacs-lisp :var z=bar (let ((y (org-sbe test1 (x (intern z) y) #+end_src Thank you for the suggestion, but it returns a symbol and not

Re: [O] How do I chain babel blocks with arguments?

2014-04-17 Thread Eric Schulte
Alan Schmitt alan.schm...@polytechnique.org writes: Hello, I have several babel blocks that each work well, but I'm now trying to chain them to build some bigger functionality out of them. I'm having trouble finding out how to pass arguments between blocks. Here is a small example:

[O] How do I chain babel blocks with arguments?

2014-04-16 Thread Alan Schmitt
Hello, I have several babel blocks that each work well, but I'm now trying to chain them to build some bigger functionality out of them. I'm having trouble finding out how to pass arguments between blocks. Here is a small example: --8---cut here---start-8---

Re: [O] How do I chain babel blocks with arguments?

2014-04-16 Thread Charles Berry
Alan Schmitt alan.schmitt at polytechnique.org writes: Hello, I have several babel blocks that each work well, but I'm now trying to chain them to build some bigger functionality out of them. I'm having trouble finding out how to pass arguments between blocks. Here is a small example: