[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 16:44:35 +0100

* Douglas Wikström (2010-12-08) writes:

> When I try to compile from mongo.tex using C-c C-c this fails and Latex 
> complains that it can not find "\end". However, removing any single 
> character from the file mongo.tex compilation works without problem. I 
> have attached a minimal example.

If I open mongo.tex, then AUCTeX thinks the buffer contents are meant to
be for plain TeX, not LaTeX.  This is because the "Local Variables"
stanza is at the top of the file and not at the bottom where it is
supposed to be.  Perhaps this is the problem in your case as well?  You
should be able to identify this quite easily by looking at the menu.  If
there is a "LaTeX" menu, then the buffer is in LaTeX mode (or one
related to it) and if there is a "TeX" menu, then the buffer is in plain
TeX mode (or you are using the LaTeX mode coming with Emacs (c;).

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.  But there is a set limit for this
search and in your example you are likely one character over the limit.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]