Function: neocaml--comment-indent-new-line

neocaml--comment-indent-new-line is a natively compiled function defined in neocaml.el.

Signature

(neocaml--comment-indent-new-line &optional SOFT)

Documentation

Break line at point and indent, continuing comment if within one.

SOFT works the same as in comment-indent-new-line.

Source Code

;; Defined in /nix/store/ahssdx4rwzyxhyhavpn0bkznk13xrggi-emacs-packages-deps/share/emacs/site-lisp/elpa/neocaml-20260907.2015/neocaml.el
(defun neocaml--comment-indent-new-line (&optional soft)
  "Break line at point and indent, continuing comment if within one.
SOFT works the same as in `comment-indent-new-line'."
  (let ((body-col (neocaml--comment-body-column)))
    (if body-col
        (progn
          (if soft (insert-and-inherit ?\n) (newline 1))
          (insert-char ?\s body-col))
      (comment-indent-new-line soft))))