aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/modes.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lispref/modes.texi')
-rw-r--r--doc/lispref/modes.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 5d09b79748e..b3aac231d5b 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -588,6 +588,18 @@ Chosen, emacs, The GNU Emacs Manual}. If @code{enable-local-variables}
588is @code{nil}, @code{set-auto-mode} does not check the @w{@samp{-*-}} 588is @code{nil}, @code{set-auto-mode} does not check the @w{@samp{-*-}}
589line, or near the end of the file, for any mode tag. 589line, or near the end of the file, for any mode tag.
590 590
591@vindex inhibit-local-variables-regexps
592There are some file types where it is not appropriate to scan the file
593contents for a mode specifier. For example, a tar archive may happen to
594contain, near the end of the file, a member file that has a local
595variables section specifying a mode for that particular file. This
596should not be applied to the containing tar file. Similarly, a tiff
597image file might just happen to contain a first line that seems to
598match the @w{@samp{-*-}} pattern. For these reasons, both these file
599extensions are members of the list @var{inhibit-local-variables-regexps}.
600Add patterns to this list to prevent Emacs searching them for local
601variables of any kind (not just mode specifiers).
602
591If @var{keep-mode-if-same} is non-@code{nil}, this function does not 603If @var{keep-mode-if-same} is non-@code{nil}, this function does not
592call the mode command if the buffer is already in the proper major 604call the mode command if the buffer is already in the proper major
593mode. For instance, @code{set-visited-file-name} sets this to 605mode. For instance, @code{set-visited-file-name} sets this to