I would like the comment-dwim function to be able to differentiate end-of-line comments from whole-line comments. For example in java mode it would make sense for // to be the end-of-line comment, but if point is on an empty line then comment-dwim would insert /* */ with point inside the /* */ like so: /* | */ where | is the point location.