diff options
| author | Stefan Monnier | 2018-01-13 17:02:50 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2018-01-13 17:02:50 -0500 |
| commit | c9c1add6a4df53e87418c27ccd6f4fbc41a42399 (patch) | |
| tree | 3c9cfe64ae1d4eb44edbe1011e5011c34be616b8 | |
| parent | 752fba992b793a74d202c9cfc3e1a92fd458e748 (diff) | |
| download | emacs-c9c1add6a4df53e87418c27ccd6f4fbc41a42399.tar.gz emacs-c9c1add6a4df53e87418c27ccd6f4fbc41a42399.zip | |
* doc/lispref/variables.texi (File Local Variables): Fix last change
| -rw-r--r-- | doc/lispref/variables.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index fe69b7b8e7b..8f8e8302c45 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1816,9 +1816,10 @@ property value. | |||
| 1816 | @code{safe-local-variable} property by adding the arguments | 1816 | @code{safe-local-variable} property by adding the arguments |
| 1817 | @code{:safe @var{function}} to @code{defcustom} (@pxref{Variable | 1817 | @code{:safe @var{function}} to @code{defcustom} (@pxref{Variable |
| 1818 | Definitions}). However, a safety predicate defined using @code{:safe} | 1818 | Definitions}). However, a safety predicate defined using @code{:safe} |
| 1819 | will only be known once the byte-compiler is loaded. As an | 1819 | will only be known once the package that contains the @code{defcustom} |
| 1820 | alternative, you can use the autoload cookie (@pxref{Autoload}) to | 1820 | is loaded, which is often too late. As an alternative, you can use |
| 1821 | assign the option its safety predicate, like this: | 1821 | the autoload cookie (@pxref{Autoload}) to assign the option its safety |
| 1822 | predicate, like this: | ||
| 1822 | 1823 | ||
| 1823 | @lisp | 1824 | @lisp |
| 1824 | ;;;###autoload (put '@var{var} 'safe-local-variable '@var{pred}) | 1825 | ;;;###autoload (put '@var{var} 'safe-local-variable '@var{pred}) |