emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: emacs-orgmode@gnu.org
Cc: nicholas.dokos@hp.com
Subject: Evaluating all #+calls in a buffer
Date: Tue, 29 Mar 2011 01:37:05 -0400	[thread overview]
Message-ID: <7819.1301377025@alphaville.dokosmarshall.org> (raw)


I have a code block in a file and then a bunch of calls to it with
different parameters. Is there a way to do all the calls in one batch?
So far, I have tried C-c C-v C-b which seems to do only the code block,
but not the #+calls and I have tried setting :export results with a
subsequent C-c C-e h to export to HTML - neither of these seems to do
the job.

E.g I can C-c C-c individually on the calls in the following:

--8<---------------cut here---------------start------------->8---

* foo

#+srcname: foo
#+begin_src python :export results :results output :var a :var b
print a + b
#+end_src

#+results: foo

#+call: foo(a=2, b=3) :file five

#+results: foo(a=2, b=3)
[[file:five]]

#+call: foo(a=3, b=4) :file seven

#+results: foo(a=3, b=4)
[[file:seven]]

--8<---------------cut here---------------end--------------->8---

and I get the output files "five" and "seven". What I would like to
be able to do is to execute something in batch mode that will produce
the two files as a result:

  emacs --batch -l minimal.emacs.babel -f <something> foo.org

Is there such a <something>?

Thanks,
Nick

                 reply	other threads:[~2011-03-29  5:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7819.1301377025@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).