From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [BABEL] Bugin :session? Export html - works --- export pdf not Date: Fri, 09 Jul 2010 08:54:52 -0700 Message-ID: <87r5jchcqb.fsf@gmail.com> References: <877hl5u890.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=59752 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXFuk-0006FW-2T for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 11:54:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXFui-0006za-Al for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 11:54:57 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:42504) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXFui-0006zL-3t for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 11:54:56 -0400 Received: by pwi8 with SMTP id 8so1981086pwi.0 for ; Fri, 09 Jul 2010 08:54:54 -0700 (PDT) In-Reply-To: (Carsten Dominik's message of "Fri, 9 Jul 2010 10:00:22 +0200") 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: Carsten Dominik Cc: emacs-orgmode , Rainer M Krug Carsten Dominik writes: [...] > > No, we really need to fix this. > > Can someone please try if the following patch does fix this issue? > Hi Carsten, I've just tested your patch against the following minimal example, and it does fix the problem, in that both of the R blocks now use the session from the #+BABEL: header. --8<---------------cut here---------------start------------->8--- #+Title: testing preservation of babel header #+Author: Eric #+BABEL: :session *R* * top header #+begin_src R :exports code x <- 1 #+end_src The result from the above block + 1 should be src_R{x+1}. --8<---------------cut here---------------end--------------->8--- Additionally I tested it against the in example which my previous patch was causing errors, namely --8<---------------cut here---------------start------------->8--- #+OPTIONS: skip:nil text before first * Test \begin{equation} E=mc^2 \end{equation} --8<---------------cut here---------------end--------------->8--- and this exported without problem. So it looks to me like this patch should be applied. Thanks for implementing a solution here. Best -- Eric