Hi, William!
On Wed, Feb 14, 2007 at 03:24:54PM +0800, William Xue wrote:
First, 'M-;' make a c style comment in a new line in a .h file, it
prints
'/* */', and the cursor blinks at the 2nd space char.
Yes. This is the place where you'll be wanting to start typing.
Then, 'M-J' to run 'c-indent-new-comment-line', and it gives
'/*
* */' and the cursor blinks at the last '*', but I think it should be
blinks at the 2nd space in the second line.
More precisely, you get this (but not in gnu style - use C-. k&r first to
see this):
/*
* */
^
|
point
What you are saying, it I understand you correctly, is that you should
see this:
/*
* */
^
|
point
I agree with you. It's a bug.
Please point out if I am wrong or have missed something.
c-indent-new-comment-line is a rat's nest of special cases. Invoking it
when there's no text inside the "/* */" needs special handling.
I'll fix it.