emacs-orgmode
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]