[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-AUCTeX] Size-of-buffer bug?
From: |
Ralf Angeli |
Subject: |
Re: [Bug-AUCTeX] Size-of-buffer bug? |
Date: |
Sun, 12 Dec 2010 17:35:02 +0100 |
Please keep the mailing list copied!
* Douglas Wikström (2010-12-12) writes:
>> The fact that the behavior changes after removing a character is likely
>> due to the stanza with the file variables being found in this case.
>> When Emacs looks for the file variables it starts at the end of the
>> buffer and then searches upwards.
>
> Indeed. This solves the problem :-) Thanks for answering a question like
> this!
>
> My suggestion is that you let it look at the whole file and issue a hint
> to put it in the end for speed if it is not. This would be more robust.
Looking through the whole file could take quite a long time if the file
is big and it is error-prone because one could encounter false positives
along the way.
The handling of file variables is (mostly) done by Emacs, not AUCTeX.
So you'd have to make such a suggestion on the Emacs Development list.
But note that you can also use file variables at the start of a file.
They have another format at this position, though. See
(info "(emacs)Specifying File Variables") <-- Type `C-x C-e' here.
When AUCTeX inserts file variables it always does so at the end of the
file.
--
Ralf