aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/modes.texi
diff options
context:
space:
mode:
authorJoakim Verona2012-01-23 15:10:06 +0100
committerJoakim Verona2012-01-23 15:10:06 +0100
commit0322b140eead7c94de7f0f6d19a90bd15690b4eb (patch)
tree950c011783cc896d0450084cb5155e54548bfe5b /doc/lispref/modes.texi
parentd5114bfea3ea4c37c57e2af0f3b095be9fcd8bac (diff)
parentcb5850f27c1b4d26957d58e2da2314dd12498671 (diff)
downloademacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.tar.gz
emacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.zip
upstream
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