* doc/lispref/variables.texi (File Local Variables): Fix last change
This commit is contained in:
parent
752fba992b
commit
c9c1add6a4
1 changed files with 4 additions and 3 deletions
|
@ -1816,9 +1816,10 @@ property value.
|
||||||
@code{safe-local-variable} property by adding the arguments
|
@code{safe-local-variable} property by adding the arguments
|
||||||
@code{:safe @var{function}} to @code{defcustom} (@pxref{Variable
|
@code{:safe @var{function}} to @code{defcustom} (@pxref{Variable
|
||||||
Definitions}). However, a safety predicate defined using @code{:safe}
|
Definitions}). However, a safety predicate defined using @code{:safe}
|
||||||
will only be known once the byte-compiler is loaded. As an
|
will only be known once the package that contains the @code{defcustom}
|
||||||
alternative, you can use the autoload cookie (@pxref{Autoload}) to
|
is loaded, which is often too late. As an alternative, you can use
|
||||||
assign the option its safety predicate, like this:
|
the autoload cookie (@pxref{Autoload}) to assign the option its safety
|
||||||
|
predicate, like this:
|
||||||
|
|
||||||
@lisp
|
@lisp
|
||||||
;;;###autoload (put '@var{var} 'safe-local-variable '@var{pred})
|
;;;###autoload (put '@var{var} 'safe-local-variable '@var{pred})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue