From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: Re: [feature request] refernce to call results
Date: Wed, 13 Nov 2013 21:08:00 +0100 [thread overview]
Message-ID: <87siv0f4kf.fsf@med.uni-goettingen.de> (raw)
In-Reply-To: 87r4ak9m2v.fsf@gmail.com
Hi Eric,
Eric Schulte <schulte.eric@gmail.com> 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
prev parent reply other threads:[~2013-11-13 20:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-13 10:19 refernce to call results Andreas Leha
2013-11-13 11:12 ` Sebastien Vauban
2013-11-13 11:33 ` Andreas Leha
2013-11-13 11:24 ` Sebastien Vauban
2013-11-13 11:45 ` Andreas Leha
2013-11-13 13:33 ` Sebastien Vauban
2013-11-13 13:59 ` [feature request] " Andreas Leha
2013-11-13 18:45 ` Eric Schulte
2013-11-13 20:08 ` Andreas Leha [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87siv0f4kf.fsf@med.uni-goettingen.de \
--to=andreas.leha@med.uni-goettingen.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.