From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [BUG] nested blocks aren't protected on export Date: Mon, 28 Jun 2010 08:04:11 -0700 Message-ID: <87wrtjb3mc.fsf@gmail.com> References: <876316cz9g.fsf@gmail.com> <8739w7ane7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=43900 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTFt0-0007bx-0k for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 11:04:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTFsf-0006t6-3N for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 11:04:21 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:43162) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTFse-0006st-SJ for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 11:04:17 -0400 Received: by pwi6 with SMTP id 6so24677pwi.0 for ; Mon, 28 Jun 2010 08:04:15 -0700 (PDT) In-Reply-To: (Carsten Dominik's message of "Mon, 28 Jun 2010 08:37:33 +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: Org Mode Hi Carsten, Carsten Dominik 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 >> 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. Thanks -- Eric > > - Carsten