From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Evaluating all #+calls in a buffer Date: Tue, 29 Mar 2011 01:37:05 -0400 Message-ID: <7819.1301377025@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=56825 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4RcH-00046R-NH for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 01:37:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4RcG-0005t0-Hy for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 01:37:21 -0400 Received: from vms173003pub.verizon.net ([206.46.173.3]:54935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4RcG-0005ss-Ej for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 01:37:20 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LIT0076S0XU2OE0@vms173003.mailsrvcs.net> for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 00:37:18 -0500 (CDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: nicholas.dokos@hp.com 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 foo.org Is there such a ? Thanks, Nick