Function: fortran-next-statement

fortran-next-statement is an interactive and byte-compiled function defined in fortran.el.gz.

Signature

(fortran-next-statement)

Documentation

Move point to beginning of the next Fortran statement.

Returns last-statement if that statement is the last non-comment Fortran statement in the file, and nil otherwise. Directive lines are treated as comments.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/fortran.el.gz
(defun fortran-next-statement ()
  "Move point to beginning of the next Fortran statement.
Returns `last-statement' if that statement is the last
non-comment Fortran statement in the file, and nil otherwise.
Directive lines are treated as comments."
  (interactive)
  (let (not-last-statement)
    (beginning-of-line)
    (while (and (setq not-last-statement
                      (and (zerop (forward-line 1))
                           (not (eobp))))
                (or (looking-at fortran-comment-line-start-skip)
                    (looking-at fortran-directive-re)
                    (looking-at "[ \t]*$\\|     [^ 0\n]\\|\t[1-9]")
                    (looking-at (concat "[ \t]*\\(?:"
                                        comment-start-skip "\\)")))))
    (if (not not-last-statement)
        'last-statement)))