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: enable-local-variables Date: Mon, 01 Jan 2007 22:45:55 +0100 Organization: nil Message-ID: <45998113$0$5712$9b4e6d93@newsspool3.arcor-online.net> References: <1167681848.399172.255500@h40g2000cwb.googlegroups.com> 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 1167691230 16108 80.91.229.12 (1 Jan 2007 22:40:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2007 22:40:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 01 23:40:28 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 1H1VpT-0000Gf-E2 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jan 2007 23:40:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1VpS-0007Bs-Sm for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jan 2007 17:40:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsinpeer00.lnd.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!newsfeed.arcor.de!newsspool2.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.92 (gnu/linux) Cancel-Lock: sha1:Nby14Vqn5eXpEscYHfZGKLSQ01k= Original-Lines: 25 Original-NNTP-Posting-Date: 01 Jan 2007 22:45:55 CET Original-NNTP-Posting-Host: e409c1cd.newsspool3.arcor-online.net Original-X-Trace: DXC=AkOD^MmP:jn_0Po7BmQ3]lMcF=Q^Z^V3h4Fo<]lROoRagUcjd<3m<; bc>5oDJ4G 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:40085 Archived-At: * Eric Twietmeyer (2007-01-01) writes: > I just upgraded to emacs 22.0.92.1. I write C++ code and there is a > local variable "typedefs" that is used for syntax highlighting. Now > that I have upgraded I find that every buffer I open that has this > local variable "typedefs" in it I am presented with a dialog asking > that I confirm that the local variable is "safe". [...] > However, there doesn't appear to be any way to specify that the local > variable "typedefs" should always be accepted as safe, regardless of > its values. Each C++ file I visit will have a different value of > "typedefs", so I can't in any reasonable way create a var, val cons > list of safe values. It would be thousands of entries long. You can specify a function as a symbol property for the variable. The function is supposed to check if the values given to the variable have the correct type. Since you didn't write which kind of values are supposed to be assigned to the variable, it is not possible to give a specific advice. I'd also be interested in knowing which package or code uses the variable before giving you a means to shoot yourself in the foot. -- Ralf