[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 7fb69ce233: ; * doc/emacs/modes.texi (Choosing Modes): Add inde
From: |
Eli Zaretskii |
Subject: |
emacs-29 7fb69ce233: ; * doc/emacs/modes.texi (Choosing Modes): Add index entries. |
Date: |
Thu, 19 Jan 2023 09:15:41 -0500 (EST) |
branch: emacs-29
commit 7fb69ce233b8a655af63d4c47b7359c43660acf6
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; * 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 06f9929092..0e4b15fb51 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 7fb69ce233: ; * doc/emacs/modes.texi (Choosing Modes): Add index entries.,
Eli Zaretskii <=