[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CC Mode 5.28 (C++); comment-indent-newline does not insert a comm en
From: |
Martin Stjernholm |
Subject: |
Re: CC Mode 5.28 (C++); comment-indent-newline does not insert a comm ent delimiter after the new line. |
Date: |
19 Jan 2002 18:05:23 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Richard Stallman <address@hidden> wrote:
> "Stefan Monnier" <monnier+gnu/address@hidden> wrote:
>
> > Right now, M-j does pretty much the same thing as the line breaking
> > of do-auto-fill except for:
> >
> > 1 - it doesn't obey comment-line-break-function
> > 2 - it doesn't obey adaptive-fill-prefix
>
> According to the doc string, the purpose of M-j is this:
>
> 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.
>
> Whether that purpose is useful enough that we should continue to have
> a command for it, I am not sure. If it is, we should not forget about it,
> If it is not, perhaps we should just eliminate M-j.
I'd say it isn't very useful in exactly that form, but there's a
similar form that is useful, and I (and also Stefan Monnier, if I'm
not mistaken) suggest that M-j is redefined to that form instead. It
has been discussed earlier in this thread, but in short:
Let M-j break the line as appropriate for continuing the comment text
on the next line, whether or not that means making a new comment for
it, indenting and/or inserting a comment continuation prefix on the
new line.
Note that this might well be different from C-j, even when the same
comment is continued. It also implies that the variable
comment-multi-line might still be considered obsolete, but for
different reasons than its docstring hints at.
- Re: CC Mode 5.28 (C++); comment-indent-newline does not insert a comm ent delimiter after the new line.,
Martin Stjernholm <=