Martin Monsorno <[EMAIL PROTECTED]> writes: > Hi *, > > I found many info on this, but I was not able to find a solution :-( > > The problem is the following: when having a javadoc comment in a > java-file like this: > > ,---- > | /** > | * bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla > bla bla bla bla bla bla > | * > `---- > > I move the point to the second line and press M-q (c-fill-paragraph), > I get this: > > ,---- > | /** > | * bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla > | bla bla bla bla bla bla bla > `---- > > but I would like to get this: > > ,---- > | /** > | * bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla > | * bla bla bla bla bla bla bla > `---- > > (stars in front of every comment line) > > How can I achieve this? > > (I think I can remember a time, when this worked out of the box, but > now it does not any longer.)
Perhaps, ,----[ C-h f indent-new-comment-line RET ] | indent-new-comment-line is an alias for `comment-indent-new-line' in `newcomment'. | (indent-new-comment-line &optional SOFT) | | 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 C-j. | | 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' is true, | unless optional argument SOFT is non-nil. `---- Bound to M-j is what you want. -- Thanks, Jeff