From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [Bug] Exporting subtree with code Date: Tue, 13 Sep 2011 09:36:16 -0600 Message-ID: <87wrdce9ov.fsf@gmail.com> References: <87fwk0veod.fsf@googlemail.com> <8739g0fq0p.fsf@gmail.com> <87d3f4wkjb.fsf@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3V2F-00009R-BQ for emacs-orgmode@gnu.org; Tue, 13 Sep 2011 11:36:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3V28-00024q-DI for emacs-orgmode@gnu.org; Tue, 13 Sep 2011 11:36:31 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:36025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3V28-00024h-66 for emacs-orgmode@gnu.org; Tue, 13 Sep 2011 11:36:24 -0400 Received: by gwaa12 with SMTP id a12so725826gwa.0 for ; Tue, 13 Sep 2011 08:36:23 -0700 (PDT) In-Reply-To: <87d3f4wkjb.fsf@googlemail.com> ("Maximilian =?utf-8?Q?Matth?= =?utf-8?Q?=C3=A9=22's?= message of "Tue, 13 Sep 2011 17:04:40 +0200") 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: Maximilian =?utf-8?Q?Matth=C3=A9?= Cc: emacs-orgmode@gnu.org >> >> I just pushed up a fix for this issue. Thanks for reporting and >>please let me know if the problem persists with the latest version of >>Org-mode from git head. >> >> Best -- Eric >> > > Hi, > > I just pulled the new version, but now I get another error message, > here's the message lock > I just pushed up another fix which should resolve this problem. What is happening is that the latex export is processing the buffer twice. On the first pass through the code block is evaluated, its results inserted, and its body removed. On the second pass through the code block processing is choking on a block with no body. The processing should now be robust to blocks with no bodies, however a better fix would be to find out why the buffer is processed twice on latex export and change that behavior. Cheers -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/