Next: Fortran Indent, Up: Fortran
In addition to the normal commands for moving by and operating on “defuns” (Fortran subprograms—functions and subroutines, as well as modules for F90 mode), Fortran mode provides special commands to move by statements and other program units.
fortran-next-statement
/f90-next-statement
).
fortran-previous-statement
/f90-previous-statement
).
If there is no previous statement (i.e. if called from the first
statement in the buffer), move to the start of the buffer.
f90-next-block
). A code block is a subroutine,
if
–endif
statement, and so forth. This command exists
for F90 mode only, not Fortran mode. With a numeric argument, this
moves forward that many blocks.
f90-previous-block
). This is like f90-next-block
, but
moves backwards.
fortran-end-of-block
/f90-end-of-block
). With a numeric
agument, move forward that number of blocks. The mark is set before
moving point. The F90 mode version of this command checks for
consistency of block types and labels (if present), but it does not
check the outermost block since that may be incomplete.
fortran-beginning-of-block
/f90-beginning-of-block
). This
is like fortran-end-of-block
, but moves backwards.