Hi Arash,

>>>>> Arash Esbati <[email protected]> writes:
> I tried it with the files attached without a problem.  One thing I found
> out is a bug in a regexp in `latex.el':

>     (defvar LaTeX-auto-minimal-regexp-list
>       '(("\\\\document\\(style\\|class\\)\
>     \\(\\[\\(\\([^#\\%]\\|%[^\n\r]*[\n\r]\\)*\\)\\]\\)?\
>     {\\([^#\\.\n\r]+?\\)}"
>          (3 5 1) LaTeX-auto-style)
>         ("\\\\use\\(package\\)\\(\\[\\([^\]\\]*\\)\\]\\)?\
>     {\\(\\([^#}\\.%]\\|%[^\n\r]*[\n\r]\\)+?\\)}"
>          (3 4 1) LaTeX-auto-style))
>       "Minimal list of regular expressions matching LaTeX macro definitions.")

> The regexp seems broken to me as fails to parse due to a \ in \refsectionmode:

>     \usepackage[refsection=\refsectionmode]{biblatex}

> My suggestion to other developers: Make the following change:

> -       ("\\\\use\\(package\\)\\(\\[\\([^\]\\]*\\)\\]\\)?\
> #       ("\\\\use\\(package\\)\\(\\[\\([^]]*\\)\\]\\)?\

+1

And I think that the same change should be applied to the RequirePackage
entry in `LaTeX-auto-class-regexp-list' as well.

Best,
Ikumi Keita

Reply via email to