[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] evaluation context in call statements
From: |
Achim Gratz |
Subject: |
Re: [O] evaluation context in call statements |
Date: |
Tue, 25 Jun 2013 21:21:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Rick Frankel writes:
> The arguments to a `#+call' line are evaluated in the context of the
> called block and not the calling block. This seems like a bug to me. For
> example, in the following i would expect the `call' to return "Call" and
> not "Source" as the results:
Tody's your lucky day because Eric just fixed this. There's a bug with
finding the #+RESULTS line though:
--8<---------------cut here---------------start------------->8---
* Babel LOC
** Source
#+name: message
#+BEGIN_SRC elisp :var m="foo"
m
#+END_SRC
#+RESULTS: message
: foo
** Call 1
#+call: message(m=(nth 4 (org-heading-components)))
#+RESULTS: message(m=(nth 4 (org-heading-components)))
: Call 2
** Call 2
#+call: message(m=(nth 4 (org-heading-components)))
--8<---------------cut here---------------end--------------->8---
Executing Call#2 will update the #+RESULTS for Call#1 (or actually the
first matching #+RESULTS cookie in the whole document). I'd think it
should also start looking for the results line from the point of call.
I don't really get why it does this, maybe Eric knows where to look.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
- [O] evaluation context in call statements, Rick Frankel, 2013/06/25
- Re: [O] evaluation context in call statements,
Achim Gratz <=
- Re: [O] evaluation context in call statements, Achim Gratz, 2013/06/25
- Re: [O] evaluation context in call statements, Achim Gratz, 2013/06/25
- Re: [O] evaluation context in call statements, Michael Brand, 2013/06/25
- Re: [O] evaluation context in call statements, Achim Gratz, 2013/06/25
- Re: [O] evaluation context in call statements, Achim Gratz, 2013/06/25
- Re: [O] evaluation context in call statements, Eric Schulte, 2013/06/26
- Re: [O] evaluation context in call statements, Achim Gratz, 2013/06/26
- Re: [O] evaluation context in call statements, Rick Frankel, 2013/06/26
- Re: [O] evaluation context in call statements, Nicolas Goaziou, 2013/06/26
- Re: [O] evaluation context in call statements, Rick Frankel, 2013/06/26