mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-01 20:06:00 +00:00
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)
This commit is contained in:
parent
f236e27805
commit
3323ee7ad0
@ -1133,6 +1133,12 @@ won't confuse other programs that the file is intended for. The
|
||||
example above is for the C programming language, where comments start
|
||||
with @samp{/*} and end with @samp{*/}.
|
||||
|
||||
If some unrelated text might look to Emacs as a local variables list,
|
||||
you can countermand that by inserting a form-feed character (a page
|
||||
delimiter, @pxref{Pages}) after that text. Emacs only looks for
|
||||
file-local variables in the last page of a file, after the last page
|
||||
delimiter.
|
||||
|
||||
@findex add-file-local-variable
|
||||
@findex delete-file-local-variable
|
||||
@findex copy-dir-locals-to-file-locals
|
||||
|
Loading…
x
Reference in New Issue
Block a user