help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enable-local-variables


From: Ralf Angeli
Subject: Re: enable-local-variables
Date: Mon, 01 Jan 2007 22:45:55 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux)

* 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]