summaryrefslogtreecommitdiff
path: root/doc/lispref/modes.texi
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2013-12-28 12:30:19 +0800
committerChong Yidong <cyd@gnu.org>2013-12-28 12:30:19 +0800
commit4364185f73c426c17de2892d41992f080c6d433c (patch)
treefbc927b5da82d770fa8e3afbbb7b0cea0404f155 /doc/lispref/modes.texi
parenta544fbe1d185d9251521e51160eaa31fda1474ca (diff)
downloademacs-4364185f73c426c17de2892d41992f080c6d433c.tar.gz
Doc updates
* buffers.texi (Modification Time): Document visited-file-modtime change. * modes.texi (Auto Major Mode): Document interpreter-mode-alist change.
Diffstat (limited to 'doc/lispref/modes.texi')
-rw-r--r--doc/lispref/modes.texi8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index f04c0c1ea9f..4388fb2f6eb 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -646,10 +646,10 @@ mode command. The default value is @code{lisp-interaction-mode}.
@defvar interpreter-mode-alist
This variable specifies major modes to use for scripts that specify a
command interpreter in a @samp{#!} line. Its value is an alist with
-elements of the form @code{(@var{interpreter} . @var{mode})}; for
-example, @code{("perl" . perl-mode)} is one element present by
-default. The element says to use mode @var{mode} if the file
-specifies an interpreter which matches @var{interpreter}.
+elements of the form @code{(@var{regexp} . @var{mode})}; this says to
+use mode @var{mode} if the file specifies an interpreter which matches
+@code{\\`@var{regexp}\\'}. For example, one of the default elements
+is @code{("python[0-9.]*" . python-mode)}.
@end defvar
@defvar magic-mode-alist