Commit 86ec878a authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Improve documentation of permanent local variables.

 variables.texi (Creating Buffer-Local): Explain the meaning of
 permanent local variables.
parent 85ee3c75
2011-02-18 Eli Zaretskii <eliz@gnu.org>
* variables.texi (Creating Buffer-Local): Explain the meaning of
permanent local variables.
2011-02-18 Glenn Morris <rgm@gnu.org>
* keymaps.texi (Remapping Commands): Mention how to undo it.
......
......@@ -1409,6 +1409,8 @@ subsequent major mode. @xref{Hooks}.
@cindex permanent local variable
A buffer-local variable is @dfn{permanent} if the variable name (a
symbol) has a @code{permanent-local} property that is non-@code{nil}.
Such variables are unaffected by @code{kill-all-local-variables}, and
their local bindings are therefore not cleared by changing major modes.
Permanent locals are appropriate for data pertaining to where the file
came from or how to save it, rather than with how to edit the contents.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment