Function: indent-new-comment-line

indent-new-comment-line is a function alias and interactive for comment-indent-new-line, defined in newcomment.el.gz.

Signature

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

Documentation

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

This indents the body of the continued comment under the previous comment line.

This command is intended for styles where you write a comment per line, starting a new comment (and terminating it if necessary) on each line. If you want to continue one comment across several lines, use M-x newline-and-indent (newline-and-indent).

If a fill column is specified, it overrides the use of the comment column or comment indentation.

The inserted newline is marked hard if variable use-hard-newlines(var)/use-hard-newlines(fun) is true, unless optional argument SOFT is non-nil.

Probably introduced at or before Emacs version 1.7.

Key Bindings

Aliases

indent-new-comment-line