Re: [O] Passing values by reference to src-blocks

2014-06-24 Thread Thorsten Jolitz
Eric Schulte writes: >> Wrong usage of :var or limitations of header arguments? > > This is to be expected. The two blocks above compose to something like > > #+begin_src emacs-lisp > (file-name-nondirectory >(file-name-directory > (directory-file-name > (file-

Re: [O] Passing values by reference to src-blocks

2014-06-24 Thread Thorsten Jolitz
Thorsten Jolitz writes: > Hi List, > > this does not work, although I would think it should (at least if there > is no typo or so): > > , > | #+name: project-root > | #+header: :var buf-file=(buffer-file-name) > | #+begin_src emacs-lisp > | (file-name-directory > | (directory-file-name > |

Re: [O] Passing values by reference to src-blocks

2014-06-24 Thread Eric Schulte
Thorsten Jolitz writes: > Hi List, > > this does not work, although I would think it should (at least if there > is no typo or so): > I think everything is doing what it is supposed to from an Org-mode perspective, see below (with different functions). #+name: plus-foo #+header: :var buf-file=

[O] Passing values by reference to src-blocks

2014-06-24 Thread Thorsten Jolitz
Hi List, this does not work, although I would think it should (at least if there is no typo or so): , | #+name: project-root | #+header: :var buf-file=(buffer-file-name) | #+begin_src emacs-lisp | (file-name-directory | (directory-file-name | (file-name-directory buf-file))) | #+end_src