comparison man/programs.texi @ 61057:0e16dd096eb2

(Fortran): Small fixes to previous changes.
author Richard M. Stallman <rms@gnu.org>
date Mon, 28 Mar 2005 21:16:48 +0000
parents bfca4745d9a3
children 09d1980656d1
comparison
equal deleted inserted replaced
61056:0b041af08b4a 61057:0e16dd096eb2
1978 @code{fortran-analyze-depth} (default 100) lines from the start of the 1978 @code{fortran-analyze-depth} (default 100) lines from the start of the
1979 buffer. The first line that begins with either a tab character or six 1979 buffer. The first line that begins with either a tab character or six
1980 spaces determines the choice. If the scan fails (for example, if the 1980 spaces determines the choice. If the scan fails (for example, if the
1981 buffer is new and therefore empty), the value of 1981 buffer is new and therefore empty), the value of
1982 @code{fortran-tab-mode-default} (@code{nil} for fixed format, and 1982 @code{fortran-tab-mode-default} (@code{nil} for fixed format, and
1983 non-@code{nil} for tab format) is used. You can tell which style is 1983 non-@code{nil} for tab format) is used. @samp{/t} in the mode line
1984 presently in effect by the presence or absence of the string specified 1984 indicates tab format is selected. Fortran mode sets the value of
1985 by @code{fortran-tab-mode-string} (default @samp{/t}) in the mode line. 1985 @code{indent-tabs-mode} accordingly (@pxref{Just Spaces}).
1986 Fortran mode sets the value of @code{indent-tabs-mode} accordingly
1987 (@pxref{Just Spaces}).
1988 1986
1989 @vindex fortran-continuation-string 1987 @vindex fortran-continuation-string
1990 If the text on a line starts with the Fortran continuation marker 1988 If the text on a line starts with the Fortran continuation marker
1991 specified by @code{fortran-continuation-string} (conventionally 1989 @samp{$}, or if it begins with any non-whitespace character in column
1992 @samp{$}), or if it begins with any non-whitespace character in column
1993 5, Fortran mode treats it as a continuation line. When you indent a 1990 5, Fortran mode treats it as a continuation line. When you indent a
1994 continuation line with @key{TAB}, it converts the line to the current 1991 continuation line with @key{TAB}, it converts the line to the current
1995 continuation style. When you split a Fortran statement with 1992 continuation style. When you split a Fortran statement with
1996 @kbd{C-M-j}, the continuation marker on the newline is created according 1993 @kbd{C-M-j}, the continuation marker on the newline is created according
1997 to the continuation style. 1994 to the continuation style.
2105 style. Statement bodies are never indented less than this much. The 2102 style. Statement bodies are never indented less than this much. The
2106 default is 8. 2103 default is 8.
2107 @end table 2104 @end table
2108 2105
2109 The variables controlling the indentation of comments are described in 2106 The variables controlling the indentation of comments are described in
2110 a separate section (@pxref{Fortran Comments}). 2107 the following section.
2111
2112 2108
2113 @node Fortran Comments 2109 @node Fortran Comments
2114 @subsection Fortran Comments 2110 @subsection Fortran Comments
2115 2111
2116 The usual Emacs comment commands assume that a comment can follow a 2112 The usual Emacs comment commands assume that a comment can follow a
2223 (@pxref{Auto Fill}). 2219 (@pxref{Auto Fill}).
2224 2220
2225 @vindex fortran-break-before-delimiters 2221 @vindex fortran-break-before-delimiters
2226 Auto Fill breaks lines at spaces or delimiters when the lines get 2222 Auto Fill breaks lines at spaces or delimiters when the lines get
2227 longer than the desired width (the value of @code{fill-column}). The 2223 longer than the desired width (the value of @code{fill-column}). The
2228 delimiters (besides whitespace) that Auto Fill may break at are 2224 delimiters (besides whitespace) that Auto Fill can break at are
2229 @samp{+}, @samp{-}, @samp{/}, @samp{*}, @samp{=}, @samp{<}, @samp{>}, 2225 @samp{+}, @samp{-}, @samp{/}, @samp{*}, @samp{=}, @samp{<}, @samp{>},
2230 and @samp{,}. The line break comes after the delimiter if the variable 2226 and @samp{,}. The line break comes after the delimiter if the
2231 @code{fortran-break-before-delimiters} is @code{nil}. Otherwise (and by 2227 variable @code{fortran-break-before-delimiters} is @code{nil}.
2232 default), the break comes before the delimiter. 2228 Otherwise (and by default), the break comes before the delimiter.
2233 2229
2234 To enable Auto Fill in all Fortran buffers, add 2230 To enable Auto Fill in all Fortran buffers, add
2235 @code{turn-on-auto-fill} to @code{fortran-mode-hook}. @xref{Hooks}. 2231 @code{turn-on-auto-fill} to @code{fortran-mode-hook}. @xref{Hooks}.
2236 2232
2237 @node Fortran Columns 2233 @node Fortran Columns