Next: , Previous: , Up: Fortran Indent   [Contents][Index]


21.13.2.1 Fortran Indentation Commands

TAB

Indent the current line (fortran-indent-line).

M-LFD

Break the current line and set up a continuation line.

C-M-q

Indent all the lines of the subprogram point is in (fortran-indent-subprogram).

TAB is redefined by Fortran mode to reindent the current line for Fortran (fortran-indent-line). Line numbers and continuation markers are indented to their required columns, and the body of the statement is independently indented, based on its nesting in the program.

The key C-M-q is redefined as fortran-indent-subprogram, a command that reindents all the lines of the Fortran subprogram (function or subroutine) containing point.

The key M-LFD is redefined as fortran-split-line, a command to split a line in the appropriate fashion for Fortran. In a non-comment line, the second half becomes a continuation line and is indented accordingly. In a comment line, both halves become separate comment lines.