From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Elston Newsgroups: gmane.emacs.help Subject: Setting file-local list variables Date: Tue, 20 May 2008 14:30:02 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1211340836 25486 80.91.229.12 (21 May 2008 03:33:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2008 03:33:56 +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 May 21 05:34:32 2008 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 1Jyf5z-0005mS-FQ for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 05:34:31 +0200 Original-Received: from localhost ([127.0.0.1]:50518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jyf5F-0008BC-AP for geh-help-gnu-emacs@m.gmane.org; Tue, 20 May 2008 23:33:45 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.posted.advantestrndcenter!news.posted.advantestrndcenter.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 20 May 2008 14:30:02 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Xnews/5.04.25 Original-Lines: 32 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 192.84.20.196 Original-X-Trace: sv3-q7H6CuH1f4V0PaZa0j4fr9zfbBjxzfico8mQ3ZcwY8GOT4912VMnygUYHyV6sc5P345W4Z1mGYLT+Vt!n7Ds3wBiKkeBntFkeMDHo1dD1RN3rKakf5oNSpiKQNCc87Gs5wXE7B5b7W9oMLzlhAm6nlfz+W+l!cgr9U20Whzp90FsurUDHCkf+v5oU Original-X-Complaints-To: abuse@advantestrndcenter X-DMCA-Complaints-To: abuse@advantestrndcenter X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.38 Original-Xref: news.stanford.edu gnu.emacs.help:158812 X-Mailman-Approved-At: Tue, 20 May 2008 23:32:01 -0400 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:54190 Archived-At: (I sent this to the AucTeX mailing list as well but since this is possibly more an Emacs issue I thought I would send it here as well.) I have been trying to set a file local variable for a LaTeX file I have been working on and it just doesn't seem to stick. In particular I am trying to set LaTeX-verbatim-environments. I am using the fancyvrb package and have developed some specific verbatim environments and want AucTeX to deal with them appropriately. These environments are specific to the file I am working on and, so, I don't want to customize AucTeX to *always* recognize them since they won't appear in any other files. However, when I put the following in my .tex file: %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% LaTeX-verbatim-environments: ("verbatim" "verbatim*" "CodeListing" "OldCodeListing" "NewCodeListing") %%% End: I get a warning when loading the file that setting the variable may not be safe. I hit 'y' to apply the local variables list and the file is loaded. However, even though I can look at the variable and see that it is set appropriately, AucTeX doesn't handle these environments as verbatim environments. If I customize the variable then it works fine. How do I set this variable so that it applies to the file? Mark