emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [feature request] refernce to call results


From: Andreas Leha
Subject: Re: [O] [feature request] refernce to call results
Date: Wed, 13 Nov 2013 21:08:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi Eric,

Eric Schulte <address@hidden> writes:

>>
>> 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
>

thanks a lot!  I confirm that it works.  This was really fast!

Regards,
Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]