Carsten Dominik <carsten.domi...@gmail.com> 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

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to