Function: f90-join-lines
f90-join-lines is an interactive and byte-compiled function defined in
f90.el.gz.
Signature
(f90-join-lines &optional ARG)
Documentation
Join current line to previous, fix whitespace, continuation, comments.
With optional argument ARG, join current line to following line.
Like join-line, but handles F90 syntax.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/f90.el.gz
(defun f90-join-lines (&optional arg)
"Join current line to previous, fix whitespace, continuation, comments.
With optional argument ARG, join current line to following line.
Like `join-line', but handles F90 syntax."
(interactive "*P")
(beginning-of-line)
(if arg (forward-line 1))
(when (eq (preceding-char) ?\n)
(skip-chars-forward " \t")
(if (looking-at "&") (delete-char 1))
(beginning-of-line)
(delete-region (point) (1- (point)))
(skip-chars-backward " \t")
(and (eq (preceding-char) ?&) (delete-char -1))
(and (f90-in-comment)
(looking-at "[ \t]*!+")
(replace-match ""))
(or (f90-in-string)
(fixup-whitespace))))