181 |
") |
") |
182 |
@end example |
@end example |
183 |
|
|
184 |
|
To help you catch violations of this convention, Font Lock mode |
185 |
|
highlights confusing opening delimiters (those that ought to be |
186 |
|
quoted) in bold red. |
187 |
|
|
188 |
In the earliest days, the original Emacs found defuns by moving |
In the earliest days, the original Emacs found defuns by moving |
189 |
upward a level of parentheses or braces until there were no more |
upward a level of parentheses or braces until there were no more |
190 |
levels to go up. This always required scanning all the way back to |
levels to go up. This always required scanning all the way back to |
877 |
@cindex comments |
@cindex comments |
878 |
|
|
879 |
Because comments are such an important part of programming, Emacs |
Because comments are such an important part of programming, Emacs |
880 |
provides special commands for editing and inserting comments. |
provides special commands for editing and inserting comments. It can |
881 |
|
also do spell checking on comments with Flyspell Prog mode |
882 |
|
(@pxref{Spelling}). |
883 |
|
|
884 |
@menu |
@menu |
885 |
* Comment Commands:: Inserting, killing, and indenting comments. |
* Comment Commands:: Inserting, killing, and indenting comments. |
1400 |
command @kbd{M-x glasses-mode} to enable or disable the mode in the |
command @kbd{M-x glasses-mode} to enable or disable the mode in the |
1401 |
current buffer; you can also add @code{glasses-mode} to the mode hook |
current buffer; you can also add @code{glasses-mode} to the mode hook |
1402 |
of the programming language major modes in which you normally want |
of the programming language major modes in which you normally want |
1403 |
to use Glasses mode. |
to use Glasses mode. |
1404 |
|
|
1405 |
@node Misc for Programs |
@node Misc for Programs |
1406 |
@section Other Features Useful for Editing Programs |
@section Other Features Useful for Editing Programs |
1844 |
@cindex Fortran77 and Fortran90 |
@cindex Fortran77 and Fortran90 |
1845 |
@findex f90-mode |
@findex f90-mode |
1846 |
@findex fortran-mode |
@findex fortran-mode |
1847 |
Fortan mode is meant for editing Fortran77 ``fixed format'' source |
Fortran mode is meant for editing Fortran77 ``fixed format'' source |
1848 |
code. For editing the modern Fortran90 ``free format'' source code, |
code. For editing the modern Fortran90 ``free format'' source code, |
1849 |
use F90 mode (@code{f90-mode}). Emacs normally uses Fortran mode for |
use F90 mode (@code{f90-mode}). Emacs normally uses Fortran mode for |
1850 |
files with extension @samp{.f}, @samp{.F} or @samp{.for}, and F90 mode |
files with extension @samp{.f}, @samp{.F} or @samp{.for}, and F90 mode |
2161 |
@code{fortran-comment-indent-char} to the single-character string you want |
@code{fortran-comment-indent-char} to the single-character string you want |
2162 |
to use. |
to use. |
2163 |
|
|
2164 |
|
@vindex fortran-directive-re |
2165 |
|
Compiler directive lines, or preprocessor lines, have much the same |
2166 |
|
appearance as comment lines. It is important, though, that such lines |
2167 |
|
never be indented at all, no matter what the value of |
2168 |
|
@code{fortran-comment-indent-style}. The variable |
2169 |
|
@code{fortran-directive-re} is a regular expression that specifies which |
2170 |
|
lines are directives. Matching lines are never indented, and receive |
2171 |
|
distinctive font-locking. |
2172 |
|
|
2173 |
@vindex comment-line-start |
@vindex comment-line-start |
2174 |
@vindex comment-line-start-skip |
@vindex comment-line-start-skip |
2175 |
Fortran mode introduces two variables @code{comment-line-start} and |
Fortran mode introduces two variables @code{comment-line-start} and |