From 7fb69ce233b8a655af63d4c47b7359c43660acf6 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 19 Jan 2023 16:15:13 +0200 Subject: [PATCH] ; * doc/emacs/modes.texi (Choosing Modes): Add index entries. --- doc/emacs/modes.texi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.2