diff options
| author | Richard M. Stallman | 2006-05-10 01:40:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-05-10 01:40:17 +0000 |
| commit | f12a0718b325de6f83b341b0f937379f917bec57 (patch) | |
| tree | 337e08769b0f04a3d722535ed99e637efd4a2a1e | |
| parent | 7d3a082e89af6576c76628c6fa02b7b173653ecd (diff) | |
| download | emacs-f12a0718b325de6f83b341b0f937379f917bec57.tar.gz emacs-f12a0718b325de6f83b341b0f937379f917bec57.zip | |
(File Local Variables): Document
safe-local-eval-forms and safe-local-eval-function.
| -rw-r--r-- | lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | lispref/variables.texi | 13 |
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 @@ | |||
| 1 | 2006-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 | |||
| 1 | 2006-05-07 Kim F. Storm <storm@cua.dk> | 6 | 2006-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 | |||
| 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. |