Mercurial > emacs
comparison lispref/variables.texi @ 70550:c53461da6760
(File Local Variables): Document
safe-local-eval-forms and safe-local-eval-function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 10 May 2006 01:40:11 +0000 |
parents | c858388f86c8 |
children | 9ff07a4bfeee |
comparison
equal
deleted
inserted
replaced
70549:c1933d4241b2 | 70550:c53461da6760 |
---|---|
1842 lists in files being visited. A value of @code{t} means process them | 1842 lists in files being visited. A value of @code{t} means process them |
1843 unconditionally; @code{nil} means ignore them; anything else means ask | 1843 unconditionally; @code{nil} means ignore them; anything else means ask |
1844 the user what to do for each file. The default value is @code{maybe}. | 1844 the 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 | |
1848 This variable holds a list of expressions that are safe to | |
1849 evaluate when found in the @samp{Eval:} ``variable'' in a file | |
1850 local 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 | |
1855 determines whether the expression is safe to evaluate. The property | |
1856 value can be a predicate to call to test the expression, a list of | |
1857 such 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 |
1848 could include functions to call. So Emacs discards all text | 1861 could include functions to call. So Emacs discards all text |
1849 properties from string values specified for file local variables. | 1862 properties from string values specified for file local variables. |
1850 | 1863 |
1851 @node Variable Aliases | 1864 @node Variable Aliases |