diff options
| author | Eli Zaretskii | 2015-12-19 12:37:49 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-19 12:37:49 +0200 |
| commit | 3323ee7ad0fd0edcd88d9f436610a4cf85b1892c (patch) | |
| tree | d4546f4fdc7bcad22535e305220380f561a4119a | |
| parent | f236e278053bb1b44a1b92e0649ef3ae73f709be (diff) | |
| download | emacs-3323ee7ad0fd0edcd88d9f436610a4cf85b1892c.tar.gz emacs-3323ee7ad0fd0edcd88d9f436610a4cf85b1892c.zip | |
Document how to avoid file-local variables that aren't
* doc/emacs/custom.texi (Specifying File Variables): Describe how
to prevent Emacs from interpreting unrelated text as file-local
variables. (Bug#22166)
| -rw-r--r-- | doc/emacs/custom.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index 30e040195e8..fc405e3a147 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -1133,6 +1133,12 @@ won't confuse other programs that the file is intended for. The | |||
| 1133 | example above is for the C programming language, where comments start | 1133 | example above is for the C programming language, where comments start |
| 1134 | with @samp{/*} and end with @samp{*/}. | 1134 | with @samp{/*} and end with @samp{*/}. |
| 1135 | 1135 | ||
| 1136 | If some unrelated text might look to Emacs as a local variables list, | ||
| 1137 | you can countermand that by inserting a form-feed character (a page | ||
| 1138 | delimiter, @pxref{Pages}) after that text. Emacs only looks for | ||
| 1139 | file-local variables in the last page of a file, after the last page | ||
| 1140 | delimiter. | ||
| 1141 | |||
| 1136 | @findex add-file-local-variable | 1142 | @findex add-file-local-variable |
| 1137 | @findex delete-file-local-variable | 1143 | @findex delete-file-local-variable |
| 1138 | @findex copy-dir-locals-to-file-locals | 1144 | @findex copy-dir-locals-to-file-locals |