hvesalai/scala-mode2 — pull request #41 by evnm (2012-12-07 00:13:05+00:00)
Title: Multi-line comment indentation and asterisk-insertion on mid-line return

When multi-line comment asterisk-insertion is enabled, if you hit "return" when the cursor is mid-line within a multi-line comment, the asterisk is inserted at the end of the line:

/**
* This is a[]comment.
*/

RETURN

/**
* This is a
comment.*
*/

This patch fixes this behavior, inserting the asterisk after line-leading whitespace instead of at line's end. It does so while maintaining the behavior of `scala-indent:add-space-for-scaladoc-asterisk`.