all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: Samuel Wales <samologist@gmail.com>,
	Grant Rettke <gcr@wisdomandwonder.com>,
	Org-mode <emacs-orgmode@gnu.org>
Subject: Re: How to handle an inline multiline noweb reference
Date: Thu, 29 Nov 2018 15:16:59 -0700	[thread overview]
Message-ID: <CAJcAo8vM-w_m3PM3oXj-Tq1oXWdAow4xkxuBkdc5bky47iwi3g@mail.gmail.com> (raw)
In-Reply-To: <87woowflja.fsf@ucl.ac.uk>

On 11/28/18, Eric S Fraga <esflists@gmail.com> wrote:
> The output (or more generally the results) of one src block is passed
> directly as input to another using the :post argument.

that helps.

i'm not familiar with many languages.  shell and lisp work best for
me, but in this case saying that clarifies.

not sure where *this* comes in.  perhaps it is a variable in the
second block being sent to the first block?

> #+begin_src org
>   ,#+name: doubleit
>   ,#+begin_src octave :results output :var x=[0.1]
>   disp(2*x)
>   ,#+end_src
>
>   ,#+name: test
>   ,#+begin_src octave :post doubleit(x=*this*)
>     2*3.14
>   ,#+end_src
>
>   ,#+results: test
>   :  12.560
> #+end_src
>
> HTH,
> eric
>
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442
>


-- 
The Kafka Pandemic: <http://thekafkapandemic.blogspot.com>

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
<http://www.meaction.net/2017/02/03/pwme-people-with-me-are-being-murdered-by-neglect>.

  reply	other threads:[~2018-11-29 22:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-27  9:45 How to handle an inline multiline noweb reference Marcin Borkowski
2018-11-28  2:08 ` Grant Rettke
2018-11-28  2:33   ` Samuel Wales
2018-11-28  7:08     ` Eric S Fraga
2018-11-28 17:33       ` Grant Rettke
2018-11-28 22:35       ` Samuel Wales
2018-11-29  6:24         ` Eric S Fraga
2018-11-29 22:16           ` Samuel Wales [this message]
2018-11-29 22:18             ` Samuel Wales
2018-11-30  6:46               ` Eric S Fraga
2018-11-30  6:44             ` Eric S Fraga
2018-11-30 15:20       ` Marcin Borkowski
2018-11-30 17:23   ` Marcin Borkowski
2018-12-02  3:59     ` Grant Rettke

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=CAJcAo8vM-w_m3PM3oXj-Tq1oXWdAow4xkxuBkdc5bky47iwi3g@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gcr@wisdomandwonder.com \
    /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.