aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-05-10 01:40:17 +0000
committerRichard M. Stallman2006-05-10 01:40:17 +0000
commitf12a0718b325de6f83b341b0f937379f917bec57 (patch)
tree337e08769b0f04a3d722535ed99e637efd4a2a1e
parent7d3a082e89af6576c76628c6fa02b7b173653ecd (diff)
downloademacs-f12a0718b325de6f83b341b0f937379f917bec57.tar.gz
emacs-f12a0718b325de6f83b341b0f937379f917bec57.zip
(File Local Variables): Document
safe-local-eval-forms and safe-local-eval-function.
-rw-r--r--lispref/ChangeLog5
-rw-r--r--lispref/variables.texi13
2 files changed, 18 insertions, 0 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index a3303d43c24..f4bdfc81aff 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,8 @@
12006-05-09 Richard Stallman <rms@gnu.org>
2
3 * variables.texi (File Local Variables): Document
4 safe-local-eval-forms and safe-local-eval-function.
5
12006-05-07 Kim F. Storm <storm@cua.dk> 62006-05-07 Kim F. Storm <storm@cua.dk>
2 7
3 * minibuf.texi (Minibuffer History): Remove keep-dups arg 8 * minibuf.texi (Minibuffer History): Remove keep-dups arg
diff --git a/lispref/variables.texi b/lispref/variables.texi
index 5b4b779448e..87008d6961b 100644
--- a/lispref/variables.texi
+++ b/lispref/variables.texi
@@ -1844,6 +1844,19 @@ unconditionally; @code{nil} means ignore them; anything else means ask
1844the user what to do for each file. The default value is @code{maybe}. 1844the user what to do for each file. The default value is @code{maybe}.
1845@end defopt 1845@end defopt
1846 1846
1847@defopt safe-local-eval-forms
1848This variable holds a list of expressions that are safe to
1849evaluate when found in the @samp{Eval:} ``variable'' in a file
1850local variables list.
1851@end defopt
1852
1853 If the expression is a function call and the function has a
1854@code{safe-local-eval-function} property, the property value
1855determines whether the expression is safe to evaluate. The property
1856value can be a predicate to call to test the expression, a list of
1857such predicates (it's safe if any predicate succeeds), or @code{t}
1858(always safe provided the arguments are constant).
1859
1847 Text properties are also potential loopholes, since their values 1860 Text properties are also potential loopholes, since their values
1848could include functions to call. So Emacs discards all text 1861could include functions to call. So Emacs discards all text
1849properties from string values specified for file local variables. 1862properties from string values specified for file local variables.