[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] evaluation context in call statements
From: |
Rick Frankel |
Subject: |
[O] evaluation context in call statements |
Date: |
Tue, 25 Jun 2013 13:34:47 -0400 |
User-agent: |
Roundcube Webmail/0.9.0 |
FThe 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:
╭────
│ * Source
│ #+name: message
│ #+BEGIN_SRC elisp :var m="foo"
│ m
│ #+END_SRC
│
│ #+RESULTS: message
│ : foo
│
│ * Call
│ #+call: message(m=(nth 4 (org-heading-components)))
│
│ #+RESULTS: message(m=(nth 4 (org-heading-components)))
│ : Source
╰────
is there any way to reference the current context in a `call' line?
rick
- [O] evaluation context in call statements,
Rick Frankel <=
- 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, 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