emacs-devel
[Top][All Lists]
Advanced

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

Declaring a variable safe


From: Eli Zaretskii
Subject: Declaring a variable safe
Date: Sun, 28 Mar 2010 20:58:48 +0300

The way to specify that a variable is safe for certain categories of
values is by giving it a `safe-local-variable' property.  For example:

  (put 'foobar 'safe-local-variable 'booleanp)

But what is the recommended way of doing this with a variable that is
defined in the C sources?  One possibility is to put the above form
somewhere in a Lisp file that is preloaded, like simple.el.  Is there
a better way?

TIA




reply via email to

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