[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [feature request] refernce to call results
From: |
Eric Schulte |
Subject: |
Re: [O] [feature request] refernce to call results |
Date: |
Wed, 13 Nov 2013 11:45:14 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
>
> I agree completely. So my question boils down to this feature request:
>
> Now, that #+call lines can be named, would it be possible to reference
> the results the same way as for code blocks?
>
I just pushed up a commit which should make this possible. E.g.,
* call by name
#+name: echo-input
#+begin_src sh :var input="original"
echo "input=$input"
#+end_src
#+RESULTS: echo-input
: input=original
#+name: echo-new
#+call: echo-input("new")
#+RESULTS: echo-new
: input=new
#+begin_src sh :var input=echo-new()
echo "this=$input"
#+end_src
#+RESULTS:
: this=input=new
Best,
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D