aboutsummaryrefslogtreecommitdiffstats
path: root/man/major.texi
diff options
context:
space:
mode:
authorEli Zaretskii2001-07-17 10:50:35 +0000
committerEli Zaretskii2001-07-17 10:50:35 +0000
commit58fa012dac718ff7097828ba99aabea688c96ea8 (patch)
tree4c19295641407f32e8a24265dbb781b7a4168030 /man/major.texi
parent12de6e2620330e1d42286a9673b9253369812432 (diff)
downloademacs-58fa012dac718ff7097828ba99aabea688c96ea8.tar.gz
emacs-58fa012dac718ff7097828ba99aabea688c96ea8.zip
Proofreading fixes from Chris Green <chris_e_green@yahoo.com>.
Diffstat (limited to 'man/major.texi')
-rw-r--r--man/major.texi29
1 files changed, 15 insertions, 14 deletions
diff --git a/man/major.texi b/man/major.texi
index 3de14ec90ab..d9f5039117e 100644
--- a/man/major.texi
+++ b/man/major.texi
@@ -31,16 +31,17 @@ how comments are to be delimited. Many major modes redefine the
31syntactical properties of characters appearing in the buffer. 31syntactical properties of characters appearing in the buffer.
32@xref{Syntax}. 32@xref{Syntax}.
33 33
34 The major modes fall into three major groups. Lisp mode (which has 34 The major modes fall into three major groups. The first group
35several variants), C mode, Fortran mode and others are for specific 35contains Lisp mode (which has several variants), C mode, Fortran mode
36programming languages. Text mode, Nroff mode, SGML mode, @TeX{} mode 36and others. These modes are for specific programming languages. The
37and Outline mode are for normal text, plain or marked up. The remaining 37second group contains Text mode, Nroff mode, SGML mode, @TeX{} mode
38major modes are not intended for use on users' files; they are used in 38and Outline mode. These modes are for normal text, plain or marked
39buffers created for specific purposes by Emacs, such as Dired mode for 39up. The remaining major modes are not intended for use on users'
40buffers made by Dired (@pxref{Dired}), Mail mode for buffers made by 40files; they are used in buffers created for specific purposes by
41@kbd{C-x m} (@pxref{Sending Mail}), and Shell mode for buffers used for 41Emacs, such as Dired mode for buffers made by Dired (@pxref{Dired}),
42communicating with an inferior shell process (@pxref{Interactive 42Mail mode for buffers made by @kbd{C-x m} (@pxref{Sending Mail}), and
43Shell}). 43Shell mode for buffers used for communicating with an inferior shell
44process (@pxref{Interactive Shell}).
44 45
45 Most programming-language major modes specify that only blank lines 46 Most programming-language major modes specify that only blank lines
46separate paragraphs. This is to make the paragraph commands useful. 47separate paragraphs. This is to make the paragraph commands useful.
@@ -88,8 +89,8 @@ or this form,
88For example, one element normally found in the list has the form 89For example, one element normally found in the list has the form
89@code{(@t{"\\.c\\'"} . c-mode)}, and it is responsible for selecting C 90@code{(@t{"\\.c\\'"} . c-mode)}, and it is responsible for selecting C
90mode for files whose names end in @file{.c}. (Note that @samp{\\} is 91mode for files whose names end in @file{.c}. (Note that @samp{\\} is
91needed in Lisp syntax to include a @samp{\} in the string, which is 92needed in Lisp syntax to include a @samp{\} in the string, which must
92needed to suppress the special meaning of @samp{.} in regexps.) If the 93be used to suppress the special meaning of @samp{.} in regexps.) If the
93element has the form @code{(@var{regexp} @var{mode-function} 94element has the form @code{(@var{regexp} @var{mode-function}
94@var{flag})} and @var{flag} is non-@code{nil}, then after calling 95@var{flag})} and @var{flag} is non-@code{nil}, then after calling
95@var{mode-function}, the suffix that matched @var{regexp} is discarded 96@var{mode-function}, the suffix that matched @var{regexp} is discarded
@@ -106,7 +107,7 @@ mode name should appear in this line both preceded and followed by
106 107
107@noindent 108@noindent
108tells Emacs to use Lisp mode. Such an explicit specification overrides 109tells Emacs to use Lisp mode. Such an explicit specification overrides
109any defaulting based on the file name. Note how the semicolon is used 110any defaults based on the file name. Note how the semicolon is used
110to make Lisp treat this line as a comment. 111to make Lisp treat this line as a comment.
111 112
112 Another format of mode specification is 113 Another format of mode specification is
@@ -158,7 +159,7 @@ mode is taken from the previously current buffer.
158mode Emacs would choose automatically: use the command @kbd{M-x 159mode Emacs would choose automatically: use the command @kbd{M-x
159normal-mode} to do this. This is the same function that 160normal-mode} to do this. This is the same function that
160@code{find-file} calls to choose the major mode. It also processes 161@code{find-file} calls to choose the major mode. It also processes
161the file's local variables list if any. 162the file's local variables list (if any).
162 163
163@vindex change-major-mode-with-file-name 164@vindex change-major-mode-with-file-name
164 The commands @kbd{C-x C-w} and @code{set-visited-file-name} change to 165 The commands @kbd{C-x C-w} and @code{set-visited-file-name} change to