Function: fortran-fill-statement
fortran-fill-statement is an interactive and byte-compiled function
defined in fortran.el.gz.
Signature
(fortran-fill-statement)
Documentation
Fill a Fortran statement up to fill-column.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/fortran.el.gz
(defun fortran-fill-statement ()
"Fill a Fortran statement up to `fill-column'."
(interactive "*")
(let ((auto-fill-function #'fortran-auto-fill))
(unless (save-excursion
(beginning-of-line)
(or (looking-at "[ \t]*$")
(looking-at fortran-comment-line-start-skip)
(and comment-start-skip
(looking-at (concat "[ \t]*\\(?:"
comment-start-skip "\\)")))))
(save-excursion
;; Find beginning of statement.
(fortran-next-statement)
(fortran-previous-statement)
;; Re-indent initially.
(fortran-indent-line)
;; Replace newline plus continuation field plus indentation with
;; single space.
(while (progn
(forward-line)
(fortran-remove-continuation)))
(fortran-previous-statement)))
(fortran-indent-line)))