Function: fortran-indent-line
fortran-indent-line is an interactive and byte-compiled function
defined in fortran.el.gz.
Signature
(fortran-indent-line)
Documentation
Indent current Fortran line based on its contents and on previous lines.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/fortran.el.gz
(defun fortran-indent-line ()
"Indent current Fortran line based on its contents and on previous lines."
(interactive "*")
(let ((cfi (fortran-calculate-indent)))
(save-excursion
(beginning-of-line)
(if (or (not (= cfi (fortran-current-line-indentation)))
(and (re-search-forward "^[ \t]*[0-9]+" (+ (point) 4) t)
(not (fortran-line-number-indented-correctly-p))))
(fortran-indent-to-column cfi)
(beginning-of-line)
(if (fortran-find-comment-start-skip)
(fortran-indent-comment))))
;; Never leave point in left margin.
(if (< (current-column) cfi)
(move-to-column cfi))
(and auto-fill-function
(> (save-excursion (end-of-line) (current-column))
fill-column)
(save-excursion
(end-of-line)
(fortran-fill)))
(when fortran-blink-matching-if
(fortran-blink-matching-if)
(fortran-blink-matching-do))))