From: Eric Schulte <schulte.eric@gmail.com>
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [feature request] refernce to call results
Date: Wed, 13 Nov 2013 11:45:14 -0700 [thread overview]
Message-ID: <87r4ak9m2v.fsf@gmail.com> (raw)
In-Reply-To: 87wqkcflm1.fsf_-_@med.uni-goettingen.de
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
>
> 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.,
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: call.org --]
[-- Type: text/x-org, Size: 320 bytes --]
* 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
[-- Attachment #3: Type: text/plain, Size: 70 bytes --]
Best,
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
next prev parent reply other threads:[~2013-11-13 18:47 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 [this message]
2013-11-13 20:08 ` Andreas Leha
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=87r4ak9m2v.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=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.