On Jun 28, 2010, at 5:04 PM, Eric Schulte wrote:
Hi Carsten,
Carsten Dominik <carsten.domi...@gmail.com> writes:
[...]
The above patch looks definitely right to me. In fact, I think the
org-if-unprotected should be around the entire content of the while
loop - with an additional fix to make sure search is resumed not
from the beginning of location of a match that has not been
processed,
that would create in infinite loop.
Great, I've just applied this patch with the fix you described.
From d422f564163e37c51d0727e2992b24b85caf54ea Mon Sep 17 00:00:00
2001
From: Eric Schulte <schulte.e...@gmail.com>
Date: Sun, 27 Jun 2010 19:36:14 -0700
Subject: [PATCH 2/2] org-latex: check for protection before wrapping
": " lines as verbatim
[...]
I am not quite certain why this second patch is needed?
This second patch ensures that we do not nest verbatim environments on
latex export, for example w/o this patch the following org-mode
--8<---------------cut here---------------start------------->8---
#+begin_src org
,* escaped org-mode markup
,this should be exported as is
,#+results: escaping-example
,: 24
#+end_src
--8<---------------cut here---------------end--------------->8---
exports to the following LaTeX
--8<---------------cut here---------------start------------->8---
\begin{verbatim}
* escaped org-mode markup
this should be exported as is
#+results: escaping-example
\begin{verbatim}
24
\end{verbatim}
\end{verbatim}
--8<---------------cut here---------------end--------------->8---
I'll wait to hear from you before doing anything with this second
patch.
For now I don't see anything wrong with this. The fastest
way to find out is to put it into master and watch the list :-)
Please go ahead and do that.
Thanks.
- Carsten
_______________________________________________
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