From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [BUG] nested blocks aren't protected on export Date: Mon, 28 Jun 2010 18:21:31 +0200 Message-ID: References: <876316cz9g.fsf@gmail.com> <8739w7ane7.fsf@gmail.com> <87wrtjb3mc.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57157 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTIhO-0008CG-HM for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 14:04:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTIhN-0000mG-7g for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 14:04:50 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:48554) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTIhN-0000m0-0d for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 14:04:49 -0400 Received: by mail-wy0-f169.google.com with SMTP id 39so3768209wyb.0 for ; Mon, 28 Jun 2010 11:04:48 -0700 (PDT) In-Reply-To: <87wrtjb3mc.fsf@gmail.com> 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: Eric Schulte Cc: Org Mode On Jun 28, 2010, at 5:04 PM, Eric Schulte wrote: > 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. 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