From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: centering blocks cause latex export to crash Date: Wed, 14 Dec 2011 15:28:35 -0600 Message-ID: <4EE91503.4000106@sift.info> References: <4EE90FC8.6080706@sift.info> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RawNP-00069v-OQ for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 16:28:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RawNO-0004e6-Id for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 16:28:35 -0500 Received: from mpls.sift.info ([75.146.46.193]:37324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RawNO-0004Yq-6p for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 16:28:34 -0500 In-Reply-To: <4EE90FC8.6080706@sift.info> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode On 12/14/11 Dec 14 -3:06 PM, Robert Goldman wrote: > I am using the latest org from git. > > The attached org-mode file causes latex export to crash with an error of > "unbalanced begin/end center blocks with ...." > > This did work, as recently as a month ago, so something relatively > recent has broken it. I got in the debugger, and the problem is that the regular expression for the end of the centering block, computed as inner-re in org-export-blocks-preprocess fails to match my #+end_center inner-re is: (inner-re (format "[\r\n][ \t]*#\\+\\(begin\\|end\\)_%s" (regexp-quote (downcase (match-string 2))))) I don't understand why this is happening: I haven't been able to tell if the regular expression is incorrectly written, so it fails to find the ending of the center block, or if somehow the logic in the while loop (which counts begins and ends to make sure they match) is counting wrong. Cheers, r