From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric Twietmeyer" Newsgroups: gmane.emacs.help Subject: enable-local-variables Date: 1 Jan 2007 12:04:08 -0800 Organization: http://groups.google.com Message-ID: <1167681848.399172.255500@h40g2000cwb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1167684029 11824 80.91.229.12 (1 Jan 2007 20:40:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2007 20:40:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 01 21:40:29 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 1H1TxK-0001Ue-6M for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jan 2007 21:40:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1TxJ-0003Ma-LS for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jan 2007 15:40:25 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h40g2000cwb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 69.254.192.192 Original-X-Trace: posting.google.com 1167681852 4636 127.0.0.1 (1 Jan 2007 20:04:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 1 Jan 2007 20:04:12 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h40g2000cwb.googlegroups.com; posting-host=69.254.192.192; posting-account=X4mNGgwAAABKvPB38ntAu46e-VHbLqgS Original-Xref: shelby.stanford.edu gnu.emacs.help:144480 Original-To: help-gnu-emacs@gnu.org 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:40083 Archived-At: Hi, 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". I have read through the docs that I can find on this, and I realized that I can set the "enable-local-variables" value to ":all", and now it won't ask me any more about these typedefs. The docs say "don't do this" (i.e. use the ":all" value) because it is globally unsafe. 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. So is there another way to work around this? I never have any other local variables defined in my files, I use emacs purely for writing code. I guess I'm just wondering what the expected usage would be in this case. Thanks, -Eric Twietmeyer