# HG changeset patch # User Richard M. Stallman # Date 1147225211 0 # Node ID c53461da6760789f1654a9a0f5bf1bed8962d45c # Parent c1933d4241b2c964612b7fa017d23ed0c5a2cdcf (File Local Variables): Document safe-local-eval-forms and safe-local-eval-function. diff -r c1933d4241b2 -r c53461da6760 lispref/variables.texi --- a/lispref/variables.texi Wed May 10 01:38:16 2006 +0000 +++ b/lispref/variables.texi Wed May 10 01:40:11 2006 +0000 @@ -1844,6 +1844,19 @@ 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.