diff options
| author | Eli Zaretskii | 2001-07-17 10:50:35 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-07-17 10:50:35 +0000 |
| commit | 58fa012dac718ff7097828ba99aabea688c96ea8 (patch) | |
| tree | 4c19295641407f32e8a24265dbb781b7a4168030 /man/major.texi | |
| parent | 12de6e2620330e1d42286a9673b9253369812432 (diff) | |
| download | emacs-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.texi | 29 |
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 | |||
| 31 | syntactical properties of characters appearing in the buffer. | 31 | syntactical 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 |
| 35 | several variants), C mode, Fortran mode and others are for specific | 35 | contains Lisp mode (which has several variants), C mode, Fortran mode |
| 36 | programming languages. Text mode, Nroff mode, SGML mode, @TeX{} mode | 36 | and others. These modes are for specific programming languages. The |
| 37 | and Outline mode are for normal text, plain or marked up. The remaining | 37 | second group contains Text mode, Nroff mode, SGML mode, @TeX{} mode |
| 38 | major modes are not intended for use on users' files; they are used in | 38 | and Outline mode. These modes are for normal text, plain or marked |
| 39 | buffers created for specific purposes by Emacs, such as Dired mode for | 39 | up. The remaining major modes are not intended for use on users' |
| 40 | buffers made by Dired (@pxref{Dired}), Mail mode for buffers made by | 40 | files; 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 | 41 | Emacs, such as Dired mode for buffers made by Dired (@pxref{Dired}), |
| 42 | communicating with an inferior shell process (@pxref{Interactive | 42 | Mail mode for buffers made by @kbd{C-x m} (@pxref{Sending Mail}), and |
| 43 | Shell}). | 43 | Shell mode for buffers used for communicating with an inferior shell |
| 44 | process (@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 |
| 46 | separate paragraphs. This is to make the paragraph commands useful. | 47 | separate paragraphs. This is to make the paragraph commands useful. |
| @@ -88,8 +89,8 @@ or this form, | |||
| 88 | For example, one element normally found in the list has the form | 89 | For 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 |
| 90 | mode for files whose names end in @file{.c}. (Note that @samp{\\} is | 91 | mode for files whose names end in @file{.c}. (Note that @samp{\\} is |
| 91 | needed in Lisp syntax to include a @samp{\} in the string, which is | 92 | needed in Lisp syntax to include a @samp{\} in the string, which must |
| 92 | needed to suppress the special meaning of @samp{.} in regexps.) If the | 93 | be used to suppress the special meaning of @samp{.} in regexps.) If the |
| 93 | element has the form @code{(@var{regexp} @var{mode-function} | 94 | element 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 |
| 108 | tells Emacs to use Lisp mode. Such an explicit specification overrides | 109 | tells Emacs to use Lisp mode. Such an explicit specification overrides |
| 109 | any defaulting based on the file name. Note how the semicolon is used | 110 | any defaults based on the file name. Note how the semicolon is used |
| 110 | to make Lisp treat this line as a comment. | 111 | to 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. | |||
| 158 | mode Emacs would choose automatically: use the command @kbd{M-x | 159 | mode Emacs would choose automatically: use the command @kbd{M-x |
| 159 | normal-mode} to do this. This is the same function that | 160 | normal-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 |
| 161 | the file's local variables list if any. | 162 | the 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 |