unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* enable-local-variables
@ 2007-01-01 20:04 Eric Twietmeyer
  2007-01-01 20:43 ` enable-local-variables Leo
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Eric Twietmeyer @ 2007-01-01 20:04 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-01-02 14:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-01 20:04 enable-local-variables Eric Twietmeyer
2007-01-01 20:43 ` enable-local-variables Leo
2007-01-01 21:45 ` enable-local-variables Ralf Angeli
2007-01-01 22:27   ` enable-local-variables Eric Twietmeyer
2007-01-01 22:50     ` enable-local-variables Ralf Angeli
2007-01-02  0:21       ` enable-local-variables Eric Twietmeyer
2007-01-02  2:21         ` enable-local-variables Eric Twietmeyer
2007-01-02  6:56           ` enable-local-variables Ralf Angeli
2007-01-02 14:55             ` enable-local-variables Eric Twietmeyer
     [not found] ` <mailman.2620.1167684196.2155.help-gnu-emacs@gnu.org>
2007-01-01 22:21   ` enable-local-variables Eric Twietmeyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).