From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.help Subject: Re: file/local variables (and auctex?) Date: Tue, 10 Apr 2007 19:33:34 +0200 Organization: nil Message-ID: <461bca6d$0$6405$9b4e6d93@newsspool2.arcor-online.net> References: Reply-To: angeli@caeruleus.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176253860 10053 80.91.229.12 (11 Apr 2007 01:11:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2007 01:11:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 03:10:11 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 1HbKHO-0000Qi-Bi for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Apr 2007 19:37:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbKLL-0004pR-Ck for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Apr 2007 13:41:23 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!hwmnpeer01.ams!news.highwinds-media.com!feed10.multikabel.net!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.96 (gnu/linux) Cancel-Lock: sha1:T0Ly212CvTZ6Cz6lWbVjkv1gT+Q= Original-Lines: 44 Original-NNTP-Posting-Date: 10 Apr 2007 19:33:33 CEST Original-NNTP-Posting-Host: 79bf8edc.newsspool2.arcor-online.net Original-X-Trace: DXC=L_dSon72]BNAa; :RKVJ>LEA9EHlD; 3YcB4Fo<]lROoRA8kFM@AfR77^m?a70L Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:146958 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:42567 Archived-At: * thorne (2007-04-10) writes: > Hello. I am working on a file and in its current incarnation it has a > file variables (first) line that looks like this: > > % -*- fill-column: 60; -*- > > and a local variables (last) section that looks like this: > > % Local Variables: % > % mode:latex % > % mode:longlines % > % tab-width:5 % > % tex-open-quote:"\"" % > % tex-close-quote:"\"" % > % indent-tabs-mode:nil % > % indent-line-function:insert-tab % > % End: % There is some spurious whitespace at the end of the last line. This prevents the whole stanza from being processed since the suffixes do not match. > The problem: latex mode and longlines do turn on and everything works > except setting fill-column and setting the tex open/close quote > string. C-h v fill-column RET tells me it is set to 68 instead of > 60. You specified to call LaTeX mode in the local variables stanza. This mode will be called after `fill-column' is set and call `kill-all-local-variables' which kills off the local value of `fill-column'. Solution: Set all variables in the local variables stanza _after_ specifying the major mode. > Stranger, is that the tex open/close quote string tells me (when > i do C-h v) that they _are_ set correctly... yet when i acually type > a quote in the buffer, it inserts the default tex quotes. I am > baffled. Can anyone clue me in on what may be wrong? The variables in AUCTeX are called `TeX-open-quote' and `TeX-close-quote', not `tex-open-quote' and `tex-close-quote'. -- Ralf