From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: export to latex broken Date: Fri, 20 Aug 2010 13:15:42 -0400 Message-ID: <24853.1282324542@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=54611 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmVCE-000880-R8 for emacs-orgmode@gnu.org; Fri, 20 Aug 2010 13:16:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmVCE-0004OZ-1O for emacs-orgmode@gnu.org; Fri, 20 Aug 2010 13:16:02 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:40067) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmVCD-0004O8-Uc for emacs-orgmode@gnu.org; Fri, 20 Aug 2010 13:16:02 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L7G00H3ENY6OB40@vms173013.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 20 Aug 2010 12:15:43 -0500 (CDT) In-reply-to: Message from Carsten Dominik of "Fri, 20 Aug 2010 18:25:16 +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: nicholas.dokos@hp.com, emacs-orgmode Carsten Dominik wrote: > > On Aug 20, 2010, at 4:36 PM, Puneeth wrote: > > > Hi, > > > > Exporting from org to LaTeX is broken on the master. > > > > Git bisect gives the bad commit as 034dbac3eecd > > "Search for LaTeX setup case-insensitively" > > OK, I have reverted it. > > Can you please describe what happened? > line 1144 ff in org-latex.el: .... (and (let ((case-fold-search t)) (re-search-forward "^#\\+LaTeX_CLASS_OPTIONS:[ \t]*\\(.*?\\)[ \t]*$" nil t) (match-string 1))))) The and used to check for the match and if the match succeeded it would return the match string. Now it returns the match string whether the search succeeds or not. It probably should be: ... (let ((case-fold-search t)) (and (re-search-forward "^#\\+LaTeX_CLASS_OPTIONS:[ \t]*\\(.*?\\)[ \t]*$" nil t) (match-string 1)))... Nick