aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/emacs/modes.texi13
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/emacs/modes.texi b/doc/emacs/modes.texi
index d0eacce0842..06f9929092c 100644
--- a/doc/emacs/modes.texi
+++ b/doc/emacs/modes.texi
@@ -430,10 +430,15 @@ For example, one element normally found in the list has the form
430mode for files whose names end in @file{.c}. (Note that @samp{\\} is 430mode for files whose names end in @file{.c}. (Note that @samp{\\} is
431needed in Lisp syntax to include a @samp{\} in the string, which must 431needed in Lisp syntax to include a @samp{\} in the string, which must
432be used to suppress the special meaning of @samp{.} in regexps.) If 432be used to suppress the special meaning of @samp{.} in regexps.) If
433the element has the form @code{(@var{regexp} @var{mode-function} 433the element has the form @w{@code{(@var{regexp} @var{mode-function}
434@var{flag})} and @var{flag} is non-@code{nil}, then after calling 434@var{flag})}} and @var{flag} is non-@code{nil}, then after calling
435@var{mode-function}, Emacs discards the suffix that matched 435@var{mode-function} (if it is non-@code{nil}), Emacs discards the
436@var{regexp} and searches the list again for another match. 436suffix that matched @var{regexp} and searches the list again for
437another match. This ``recursive extension stripping'' is used for
438files which have multiple extensions, and the ``outer'' extension
439hides the ``inner'' one that actually specifies the right mode. For
440example, backup files and GPG-encrypted files with @file{.gpg}
441extension use this feature.
437 442
438@vindex auto-mode-case-fold 443@vindex auto-mode-case-fold
439 On GNU/Linux and other systems with case-sensitive file names, Emacs 444 On GNU/Linux and other systems with case-sensitive file names, Emacs