From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Giovanni Moretti" Subject: Re: Re: Bug: subtree export fails with src block Date: Mon, 4 Oct 2010 16:02:32 +1300 Message-ID: <70a0cde5cbf513c515de12aa486b29cd.squirrel@webmail.godzone.net.nz> Reply-To: Giovanni@reflections.co.nz Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=38570 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2bS6-0001oh-Qy for emacs-orgmode@gnu.org; Sun, 03 Oct 2010 23:10:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2bIS-0000FJ-Ni for emacs-orgmode@gnu.org; Sun, 03 Oct 2010 23:01:01 -0400 Received: from agree-15.godzone.net.nz ([192.138.251.15]:59365 helo=mail2.godzone.net.nz) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2bIS-0000F6-7t for emacs-orgmode@gnu.org; Sun, 03 Oct 2010 23:01:00 -0400 Received: from localhost (localhost [127.0.0.1]) by mail1-local.godzone.net.nz (Postfix) with ESMTP id 59F5370F for ; Mon, 4 Oct 2010 16:00:55 +1300 (NZDT) Received: from mail2.godzone.net.nz ([127.0.0.1]) by localhost (mail1.godzone.net.nz [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id gNGXZUYlMXVm for ; Mon, 4 Oct 2010 16:00:55 +1300 (NZDT) Received: from webmail.godzone.net.nz (agree-30.godzone.net.nz [192.138.251.30]) by mail2.godzone.net.nz (Postfix) with ESMTP id 2942B6A4 for ; Mon, 4 Oct 2010 16:00:55 +1300 (NZDT) 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 I'm just starting with Babel and have been puzzled about why one file worked and another didn't. I have been playing in a new file without any headers at all (no lines starting with '*') and while I could execute the code in the buffer, exporting to HTML always failed with: No such file: c:/org/babel-python-test.org:: When searching, I found this thread and wondered if the heading were important. It turns out they are. In the block below, exporting to HTML fails if the first line isn't a heading. This seems like a clue ... Cheers and thanks Giovanni PS: the BOTH option for :export is hard to find - only :export none is in the intro page. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D * Python Babel test Now let's see what happens: #+begin_src python :results output :exports both print "Babel" limits =3D [1,2,3,4,5,6,7,8,9,10] for i in limits: print "Hello" * i #+end_src python =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D