From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Bretfeld Newsgroups: gmane.emacs.help Subject: Re: No TeX-master file recognized in CVS Emacs [was: reftex-citation doesn't ask for pages] Date: Tue, 22 May 2007 23:07:37 +0200 Message-ID: <20070522210737.GB7680@relwi.unibe.ch> References: <4650ae78$0$10186$9b4e6d93@newsspool4.arcor-online.net> <20070520224716.GH6235@relwi.unibe.ch> <4651363f$0$23142$9b4e6d93@newsspool1.arcor-online.net> <20070521103355.GC4395@relwi.unibe.ch> <877ir21kch.fsf@poczta.po.opole.pl> <20070522192047.GA7680@relwi.unibe.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179868072 14189 80.91.229.12 (22 May 2007 21:07:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 May 2007 21:07:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 22 23:07:49 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hqba6-0002LF-PG for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2007 23:07:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hqba7-0002Cl-SE for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2007 17:07:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HqbZu-0002Ca-1y for help-gnu-emacs@gnu.org; Tue, 22 May 2007 17:07:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HqbZr-0002CO-Ks for help-gnu-emacs@gnu.org; Tue, 22 May 2007 17:07:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqbZr-0002CL-I8 for help-gnu-emacs@gnu.org; Tue, 22 May 2007 17:07:31 -0400 Original-Received: from viefep18-int.chello.at ([213.46.255.22] helo=viefep23-int.chello.at) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HqbZq-0007Zi-Qt for help-gnu-emacs@gnu.org; Tue, 22 May 2007 17:07:31 -0400 Original-Received: from kamaloka.dhatu ([80.219.144.82]) by viefep23-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20070522210728.YLJU662.viefep23-int.chello.at@kamaloka.dhatu> for ; Tue, 22 May 2007 23:07:28 +0200 Original-Received: from sven by kamaloka.dhatu with local (Exim 4.63) (envelope-from ) id 1HqbZx-0006tx-I7 for help-gnu-emacs@gnu.org; Tue, 22 May 2007 23:07:37 +0200 Content-Disposition: inline In-Reply-To: <20070522192047.GA7680@relwi.unibe.ch> X-Operating-System: Debian GNU/Linux 4.0 Kernel 2.6.18-4-486 User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Solaris 10 (beta) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44286 Archived-At: Hello to all On Tue, May 22, 2007 at 09:20:47PM +0200, Sven Bretfeld wrote: > Its seems that Emacs doesn't know about the master file and tries to > run latex on the document shown in the buffer (therefore latex is > missing the \begin{document}). I have no idea what the problem is. Was > there a change in the CVS version that escaped my attention? Do I have > to inform Emacs about the TeX-master in a different way now? However, > the file is parsed, because flyspell is on due to the "%%% mode: > flyspell" line at the end. Only the line "%%% TeX-master: foo" seems > to have no effect. I've figured it out by experimenting. The problem was the bottom of the file where emacs stores information for parsing. (I don't know the exact nomenclature for these %%% lines). The following had worked under Emacs 21: %%% Local Variables: %%% mode: flyspell %%% TeX-master: "habil" %%% End: The second line starts flyspell automatically on loading the file, as I once found out. Emacs from CVS on the other hand misses the line %%% mode: latex although LateX is correctly recognized as the major mode). After I replaced "flyspell" by "latex" it worked again. Thanks for pointing me to Emacs from CVS. It's stable as far as I can tell, and it containes many useful new functions.