[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] Re: 11.82; extra commented \begin{document} suppresses prev
From: |
Ralf Angeli |
Subject: |
[Bug-AUCTeX] Re: 11.82; extra commented \begin{document} suppresses preview-latex |
Date: |
Thu, 12 Jan 2006 23:07:32 +0100 |
* Richard Lewis (2006-01-12) writes:
> Ralf Angeli <address@hidden> 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