From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: How do I chain babel blocks with arguments?
Date: Tue, 22 Apr 2014 14:47:38 +0200 [thread overview]
Message-ID: <m261m17cph.fsf@polytechnique.org> (raw)
In-Reply-To: <87sip5ha70.fsf@gmail.com> (Eric Schulte's message of "Tue, 22 Apr 2014 07:30:39 -0400")
Hi Eric,
On 2014-04-22 13:30, Eric Schulte <schulte.eric@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 y=test3(x=z)
> y
> #+end_src
>
> #+results: test4
> : "bar"
>
> #+call: test4(y="BAZ")
>
> #+RESULTS:
> : BAZ
I'm afraid I'm not being clear: I want to use the result of `test3' in
the computation done to test4. Intuitively, I want test4 to be something
like: "(lambda (x) (... (test3 x) ...))". This is why I was writing
a header of the form:
> #+begin_src emacs-lisp :var x="foo" :var y=test3(x)
where x would be given by the call to the block, and y would only be
used internally.
Thanks,
Alan
next prev parent reply other threads:[~2014-04-22 12:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-16 17:04 How do I chain babel blocks with arguments? Alan Schmitt
2014-04-16 20:49 ` Charles Berry
2014-04-17 10:11 ` Alan Schmitt
2014-04-17 10:24 ` Thorsten Jolitz
2014-04-17 11:37 ` Alan Schmitt
2014-04-17 5:42 ` Eric Schulte
2014-04-18 6:43 ` Alan Schmitt
2014-04-20 1:41 ` Eric Schulte
2014-04-20 3:33 ` Xebar Saram
2014-04-21 1:22 ` Eric Schulte
2014-04-22 6:53 ` Alan Schmitt
2014-04-22 11:30 ` Eric Schulte
2014-04-22 12:47 ` Alan Schmitt [this message]
2014-04-24 1:16 ` Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m261m17cph.fsf@polytechnique.org \
--to=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
--cc=schulte.eric@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.