diff options
| author | Chong Yidong | 2008-10-21 21:04:13 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-21 21:04:13 +0000 |
| commit | da77fe944acfba2f5621414fbf7ae1c683654c49 (patch) | |
| tree | 493a5d73f3b279b9e0774fe880a540692635e5e2 | |
| parent | 04e6cfffa0eb628ddb51a635ca76f290c257bf47 (diff) | |
| download | emacs-da77fe944acfba2f5621414fbf7ae1c683654c49.tar.gz emacs-da77fe944acfba2f5621414fbf7ae1c683654c49.zip | |
Minor language tweaks (suggested by rms).
| -rw-r--r-- | doc/emacs/major.texi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/emacs/major.texi b/doc/emacs/major.texi index 1774adfc1c3..42bb4939bbd 100644 --- a/doc/emacs/major.texi +++ b/doc/emacs/major.texi | |||
| @@ -72,10 +72,10 @@ executing @kbd{M-x lisp-mode}. | |||
| 72 | 72 | ||
| 73 | @vindex auto-mode-alist | 73 | @vindex auto-mode-alist |
| 74 | When you visit a file, Emacs usually chooses the right major mode | 74 | When you visit a file, Emacs usually chooses the right major mode |
| 75 | automatically. Normally, the choice is made based on the file | 75 | automatically. Normally, it makes the choice based on the file |
| 76 | name---for example, files whose names end in @samp{.c} are normally | 76 | name---for example, files whose names end in @samp{.c} are normally |
| 77 | edited in C mode---but sometimes the major mode is selected using the | 77 | edited in C mode---but sometimes it chooses the major mode based on |
| 78 | contents of the file. Here is the exact procedure: | 78 | the contents of the file. Here is the exact procedure: |
| 79 | 79 | ||
| 80 | First, Emacs checks whether the file contains a file-local variable | 80 | First, Emacs checks whether the file contains a file-local variable |
| 81 | that specifies the major mode. If so, it uses that major mode, | 81 | that specifies the major mode. If so, it uses that major mode, |
| @@ -106,7 +106,7 @@ this: | |||
| 106 | @end example | 106 | @end example |
| 107 | 107 | ||
| 108 | @vindex interpreter-mode-alist | 108 | @vindex interpreter-mode-alist |
| 109 | Secondly, Emacs checks whether the file's contents begin with | 109 | Second, Emacs checks whether the file's contents begin with |
| 110 | @samp{#!}. If so, that indicates that the file can serve as an | 110 | @samp{#!}. If so, that indicates that the file can serve as an |
| 111 | executable shell command, which works by running an interpreter named | 111 | executable shell command, which works by running an interpreter named |
| 112 | on the file's first line (the rest of the file is used as input to the | 112 | on the file's first line (the rest of the file is used as input to the |
| @@ -124,7 +124,7 @@ same is true for man pages which start with the magic string | |||
| 124 | @samp{'\"} to specify a list of troff preprocessors. | 124 | @samp{'\"} to specify a list of troff preprocessors. |
| 125 | 125 | ||
| 126 | @vindex magic-mode-alist | 126 | @vindex magic-mode-alist |
| 127 | Thirdly, Emacs tries to determine the major mode by looking at the | 127 | Third, Emacs tries to determine the major mode by looking at the |
| 128 | text at the start of the buffer, based on the variable | 128 | text at the start of the buffer, based on the variable |
| 129 | @code{magic-mode-alist}. By default, this variable is @code{nil} (an | 129 | @code{magic-mode-alist}. By default, this variable is @code{nil} (an |
| 130 | empty list), so Emacs skips this step; however, you can customize it | 130 | empty list), so Emacs skips this step; however, you can customize it |
| @@ -152,7 +152,7 @@ where @var{match-function} is a Lisp function that is called at the | |||
| 152 | beginning of the buffer; if the function returns non-@code{nil}, Emacs | 152 | beginning of the buffer; if the function returns non-@code{nil}, Emacs |
| 153 | set the major mode wit @var{mode-function}. | 153 | set the major mode wit @var{mode-function}. |
| 154 | 154 | ||
| 155 | Fourthly---if Emacs still hasn't found a suitable major mode---it | 155 | Fourth---if Emacs still hasn't found a suitable major mode---it |
| 156 | looks at the file's name. The correspondence between file names and | 156 | looks at the file's name. The correspondence between file names and |
| 157 | major modes is controlled by the variable @code{auto-mode-alist}. Its | 157 | major modes is controlled by the variable @code{auto-mode-alist}. Its |
| 158 | value is a list in which each element has this form, | 158 | value is a list in which each element has this form, |