Carsten Dominik <carsten.domi...@gmail.com> 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

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to