[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Local variables in an org file
From: |
Jarmo Hurri |
Subject: |
Re: [O] Local variables in an org file |
Date: |
Fri, 21 Aug 2015 13:54:17 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Thomas S. Dye <address@hidden> writes:
> * Define a local variable
> #+name: my-var
> #+header: :exports none
> #+begin_src R
> 768
> #+end_src
> #+name: pass-my-var-to-code-block
> #+header: :var x=my-var
> #+header: :exports both
> #+begin_src emacs-lisp
> (+ x 1)
> #+end_src
>
> #+results: pass-my-var-to-code-block
> : 769
>
> The variable is call_my-var().
Yeah, this will work, but it's a huge amount of work.
It would be brilliant if one could easily refer to a property inside a
subtree. In both text and code.
Jarmo