diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-01-19 16:15:13 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-01-19 16:15:13 +0200 |
commit | 7fb69ce233b8a655af63d4c47b7359c43660acf6 (patch) | |
tree | 3d664b72ed33a025f083ac246e756a2c6291ab2e /doc/emacs/modes.texi | |
parent | 12d7670b90f66f1d45a8c69d9acfc25238a65b02 (diff) | |
download | emacs-7fb69ce233b8a655af63d4c47b7359c43660acf6.tar.gz |
; * doc/emacs/modes.texi (Choosing Modes): Add index entries.
Diffstat (limited to 'doc/emacs/modes.texi')
-rw-r--r-- | doc/emacs/modes.texi | 7 |
1 files 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 |