diff options
| author | Eli Zaretskii | 2019-06-01 10:28:30 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-06-01 10:28:30 +0300 |
| commit | d8a6d82c4d34286b377fd7bddd4be0116e8dd4b9 (patch) | |
| tree | 963afb96462dbba8f7f652fad3be6f890ac5e13a | |
| parent | b3df3729596332a39404c364798a61bfef2adcc2 (diff) | |
| download | emacs-d8a6d82c4d34286b377fd7bddd4be0116e8dd4b9.tar.gz emacs-d8a6d82c4d34286b377fd7bddd4be0116e8dd4b9.zip | |
Improve documentation of 'safe-local-variable' property
* doc/lispref/variables.texi (File Local Variables): Document
how to define 'safe-local-variable' properties for built-in
variables.
| -rw-r--r-- | doc/lispref/variables.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 153a80a4443..1a1860df307 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1847,6 +1847,11 @@ variables have @code{safe-local-variable} properties; these include | |||
| 1847 | For boolean-valued variables that are safe, use @code{booleanp} as the | 1847 | For boolean-valued variables that are safe, use @code{booleanp} as the |
| 1848 | property value. | 1848 | property value. |
| 1849 | 1849 | ||
| 1850 | If you want to define @code{safe-local-variable} properties for | ||
| 1851 | variables defined in C source code, add the names and the properties | ||
| 1852 | of those variables to the list in the ``Safe local variables'' section | ||
| 1853 | of @file{files.el}. | ||
| 1854 | |||
| 1850 | @cindex autoload cookie, and safe values of variable | 1855 | @cindex autoload cookie, and safe values of variable |
| 1851 | When defining a user option using @code{defcustom}, you can set its | 1856 | When defining a user option using @code{defcustom}, you can set its |
| 1852 | @code{safe-local-variable} property by adding the arguments | 1857 | @code{safe-local-variable} property by adding the arguments |