* Babel, var vrom property drawer in function call?
@ 2015-09-03 17:42 Kalev Takkis
0 siblings, 0 replies; only message in thread
From: Kalev Takkis @ 2015-09-03 17:42 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
Hi list,
Is there a way to use variables defined as :var: in :PROPERTIES: drawer in
function call? Such as
** Some heading
:PROPERTIES:
:var: par1="smth"
:END:
#+call: some-function(parameter=par1)
Better yet, is there a way to have the function itself to figure out which
properties are in effect in a place where a function is called from? What I
mean is, when i have a code block
#+name: some-function
#+begin_src sh :results code
echo $par1
#+end_src
defined under ** Some heading, evaluating the function will echo the value
of par1. But when the function is defined somewhere where par1 is not
defined, calling it under ** Some heading with #+call doesn't work. Can I
somehow instruct org to automatically use the parameter value from the
place where the function is called with #+call, rather than where its body
is defined?
All the best,
Kalev
[-- Attachment #2: Type: text/html, Size: 1363 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-03 17:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-03 17:42 Babel, var vrom property drawer in function call? Kalev Takkis
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).