emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] export to latex broken


From: Nick Dokos
Subject: Re: [Orgmode] export to latex broken
Date: Fri, 20 Aug 2010 13:15:42 -0400

Carsten Dominik <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]