aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2018-01-13 17:02:50 -0500
committerStefan Monnier2018-01-13 17:02:50 -0500
commitc9c1add6a4df53e87418c27ccd6f4fbc41a42399 (patch)
tree3c9cfe64ae1d4eb44edbe1011e5011c34be616b8
parent752fba992b793a74d202c9cfc3e1a92fd458e748 (diff)
downloademacs-c9c1add6a4df53e87418c27ccd6f4fbc41a42399.tar.gz
emacs-c9c1add6a4df53e87418c27ccd6f4fbc41a42399.zip
* doc/lispref/variables.texi (File Local Variables): Fix last change
-rw-r--r--doc/lispref/variables.texi7
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
1818Definitions}). However, a safety predicate defined using @code{:safe} 1818Definitions}). However, a safety predicate defined using @code{:safe}
1819will only be known once the byte-compiler is loaded. As an 1819will only be known once the package that contains the @code{defcustom}
1820alternative, you can use the autoload cookie (@pxref{Autoload}) to 1820is loaded, which is often too late. As an alternative, you can use
1821assign the option its safety predicate, like this: 1821the autoload cookie (@pxref{Autoload}) to assign the option its safety
1822predicate, 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})