diff options
author | Richard M. Stallman <[email protected]> | 2006-05-10 01:40:17 +0000 |
---|---|---|
committer | Richard M. Stallman <[email protected]> | 2006-05-10 01:40:17 +0000 |
commit | f12a0718b325de6f83b341b0f937379f917bec57 (patch) | |
tree | 337e08769b0f04a3d722535ed99e637efd4a2a1e /lispref/variables.texi | |
parent | 7d3a082e89af6576c76628c6fa02b7b173653ecd (diff) |
(File Local Variables): Document
safe-local-eval-forms and safe-local-eval-function.
Diffstat (limited to 'lispref/variables.texi')
-rw-r--r-- | lispref/variables.texi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lispref/variables.texi b/lispref/variables.texi index 5b4b779448..87008d6961 100644 --- a/lispref/variables.texi +++ b/lispref/variables.texi @@ -1844,6 +1844,19 @@ unconditionally; @code{nil} means ignore them; anything else means ask the user what to do for each file. The default value is @code{maybe}. @end defopt +@defopt safe-local-eval-forms +This variable holds a list of expressions that are safe to +evaluate when found in the @samp{Eval:} ``variable'' in a file +local variables list. +@end defopt + + If the expression is a function call and the function has a +@code{safe-local-eval-function} property, the property value +determines whether the expression is safe to evaluate. The property +value can be a predicate to call to test the expression, a list of +such predicates (it's safe if any predicate succeeds), or @code{t} +(always safe provided the arguments are constant). + Text properties are also potential loopholes, since their values could include functions to call. So Emacs discards all text properties from string values specified for file local variables. |