comment-insert-comment-function

comment-insert-comment-function is a variable defined in `newcomment.el'.
Its value is
nil

  • This variable may be risky if used as a file-local variable.

Documentation:
Function to insert a comment when a line doesn't contain one.
The function has no args.

Applicable at least in modes for languages like fixed-format Fortran where
comments always start in column zero.