From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Halder Subject: Re: [Babel] size limit of #+call Date: Sat, 24 Mar 2012 21:46:44 +0100 Message-ID: References: <8889A3B3-267B-4E41-B52D-D33DC9162523@gmail.com> <32138.1332615602@alphaville> Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBXrP-0005TX-8D for emacs-orgmode@gnu.org; Sat, 24 Mar 2012 16:46:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBXrN-0008IR-JU for emacs-orgmode@gnu.org; Sat, 24 Mar 2012 16:46:50 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:56012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBXrN-0008IL-Aw for emacs-orgmode@gnu.org; Sat, 24 Mar 2012 16:46:49 -0400 Received: by wgbdr1 with SMTP id dr1so2191319wgb.30 for ; Sat, 24 Mar 2012 13:46:46 -0700 (PDT) In-Reply-To: <32138.1332615602@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Am 24.03.2012 um 20:00 schrieb Nick Dokos: > Martin Halder wrote: >=20 >> Hi all, >>=20 >> trying to use a function to output a latex file using python with =3D >> #+call. >>=20 >> The example below does work but when pycalltest gets too big it just = =3D >> output "nil". >> When I call pycalltest directly with C-c C-c it works even with a big = =3D >> function. >>=20 >> Is there a size limit when I use #+call ? >>=20 >> Thanks for help, >> Martin >>=20 >> #+name: =3D >> = pycalltest(trans=3D3Dtranslation,items=3D3Ditems,cust=3D3Dcustomer,deta=3D= 3Ddetail=3D >> s,lang=3D3D"german",cur=3D3D"chf") >> #+begin_src python :results output >> execfile('latex.py') >> print lx_config >> #+end_src >> #+call: pycalltest(translation,items,customer,details,"german","chf") = =3D >> :file "test.tex" >=20 > Can you please provide all the pieces needed to run this? I presume at = least > latex.py is needed - anything else? could reduce the problem to a small example, seems the table is handled = differently when using #+call. direct evaluation: [['country', 'Schweiz', 'Switzerland']] using call: [['field', 'german', 'english'], None, ['country', 'Schweiz', = 'Switzerland']] #+tblname: transl | field | german | english | |---------+---------+-------------| | country | Schweiz | Switzerland | #+name: pycalltest(trans=3Dtransl) #+begin_src python :results output print trans #+end_src #+call: pycalltest(transl) :file "test.tex"