From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [PATCH] babel: delaying call to block preprocessing Date: Fri, 12 Nov 2010 16:44:39 -0700 Message-ID: <874obmdqzv.fsf@gmail.com> References: <87vd432som.wl%n.goaziou@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=50198 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PH3fu-0006F0-7h for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 19:08:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PH3fs-0004gZ-Vz for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 19:08:58 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:49254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PH3fs-0004gU-SB for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 19:08:56 -0500 Received: by gyh3 with SMTP id 3so141259gyh.0 for ; Fri, 12 Nov 2010 16:08:56 -0800 (PST) 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: Nicolas Goaziou Cc: Org Mode List Hi Nicolas, Thanks for making this change, I agree it is appropriate now that Babel is included in Org-mode. I've just pushed it up. Best -- Eric Nicolas Goaziou writes: > Hello, > > I'm having a little problem when I want to insert a code block inside > a list. Here is an example: > > ===== > 1. Drawing is following: > > #+BEGIN_SRC asymptote :file drawing.pdf > unitsize(5cm); > draw(unitcircle); > #+END_SRC > > > Now find its center with compass only. > > 2. Another item. > ===== > > Upon exporting this, as the code is removed, the blank lines > surrounding it join together, creating a 2-blank-lines combo very bad > for the list processing taking place a few lines later. Indeed, when > `org-export-preprocess-string' proceeds marking list endings in the > export string, it sees there two separates lists instead of one. > > So, the following patch moves `org-export-blocks-preprocess' out of > its hook (now babel is in Org core this isn't needed anymore), and > make it called somewhat later, after list processing (and after > removing excluded and archived trees). > > Regards, > > -- > Nicolas >