From: Eli Zaretskii Date: Thu, 19 Jan 2023 14:15:13 +0000 (+0200) Subject: ; * doc/emacs/modes.texi (Choosing Modes): Add index entries. X-Git-Tag: emacs-29.0.90~667 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7fb69ce233b8a655af63d4c47b7359c43660acf6;p=emacs.git ; * doc/emacs/modes.texi (Choosing Modes): Add index entries. --- diff --git a/doc/emacs/modes.texi b/doc/emacs/modes.texi index 06f9929092c..0e4b15fb514 100644 --- a/doc/emacs/modes.texi +++ b/doc/emacs/modes.texi @@ -429,8 +429,11 @@ For example, one element normally found in the list has the form @code{(@t{"\\.c\\'"} . c-mode)}, and it is responsible for selecting C mode for files whose names end in @file{.c}. (Note that @samp{\\} is needed in Lisp syntax to include a @samp{\} in the string, which must -be used to suppress the special meaning of @samp{.} in regexps.) If -the element has the form @w{@code{(@var{regexp} @var{mode-function} +be used to suppress the special meaning of @samp{.} in regexps.) + +@cindex backup files, choosing a major mode +@cindex encrypted files, choosing a major mode +If the element has the form @w{@code{(@var{regexp} @var{mode-function} @var{flag})}} and @var{flag} is non-@code{nil}, then after calling @var{mode-function} (if it is non-@code{nil}), Emacs discards the suffix that matched @var{regexp} and searches the list again for