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