diff options
| author | Joakim Verona | 2012-01-23 15:10:06 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-01-23 15:10:06 +0100 |
| commit | 0322b140eead7c94de7f0f6d19a90bd15690b4eb (patch) | |
| tree | 950c011783cc896d0450084cb5155e54548bfe5b /doc/lispref/modes.texi | |
| parent | d5114bfea3ea4c37c57e2af0f3b095be9fcd8bac (diff) | |
| parent | cb5850f27c1b4d26957d58e2da2314dd12498671 (diff) | |
| download | emacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.tar.gz emacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.zip | |
upstream
Diffstat (limited to 'doc/lispref/modes.texi')
| -rw-r--r-- | doc/lispref/modes.texi | 12 |
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} | |||
| 588 | is @code{nil}, @code{set-auto-mode} does not check the @w{@samp{-*-}} | 588 | is @code{nil}, @code{set-auto-mode} does not check the @w{@samp{-*-}} |
| 589 | line, or near the end of the file, for any mode tag. | 589 | line, or near the end of the file, for any mode tag. |
| 590 | 590 | ||
| 591 | @vindex inhibit-local-variables-regexps | ||
| 592 | There are some file types where it is not appropriate to scan the file | ||
| 593 | contents for a mode specifier. For example, a tar archive may happen to | ||
| 594 | contain, near the end of the file, a member file that has a local | ||
| 595 | variables section specifying a mode for that particular file. This | ||
| 596 | should not be applied to the containing tar file. Similarly, a tiff | ||
| 597 | image file might just happen to contain a first line that seems to | ||
| 598 | match the @w{@samp{-*-}} pattern. For these reasons, both these file | ||
| 599 | extensions are members of the list @var{inhibit-local-variables-regexps}. | ||
| 600 | Add patterns to this list to prevent Emacs searching them for local | ||
| 601 | variables of any kind (not just mode specifiers). | ||
| 602 | |||
| 591 | If @var{keep-mode-if-same} is non-@code{nil}, this function does not | 603 | If @var{keep-mode-if-same} is non-@code{nil}, this function does not |
| 592 | call the mode command if the buffer is already in the proper major | 604 | call the mode command if the buffer is already in the proper major |
| 593 | mode. For instance, @code{set-visited-file-name} sets this to | 605 | mode. For instance, @code{set-visited-file-name} sets this to |