* Richard Lewis (2006-01-12) writes:
> Ralf Angeli <[EMAIL PROTECTED]> writes:
>
>> (setq LaTeX-header-end "^[ \t]*\\\\begin *{document}"
>> LaTeX-trailer-start "^[ \t]*\\\\end *{document}")
>>
>> before latex.el is loaded.
>>
>> I'll have to check if using these values as default has any negative
>> side effects.
>
> I've been using
>
> (setq-default LaTeX-header-end "[^%]\\\\begin *{document}") ; for mylatex.ltx
>
> for ages without problems
Why the `setq-default'? `LaTeX-header-end' is not buffer-local.
Anyway, your suggestion does not cover the testcase Patrick gave.
We'd probably need something like "^[^%\n]*\\\\begin *{document}".
It is not able to cope with \% but I guess this is less likely to
occur than a comment starter. And it is quite expensive because it
uses a complemented character alternative with an indefinite number of
matches.
--
Ralf
_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex