[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: redundant space after run 'c-indent-new-comment-line'
From: |
Alan Mackenzie |
Subject: |
Re: redundant space after run 'c-indent-new-comment-line' |
Date: |
14 Feb 2007 23:34:39 +0100 |
Date: |
Wed, 14 Feb 2007 23:49:25 +0000 |
User-agent: |
Mutt/1.5.9i |
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.
> Thanks!
Thank you!
> --
> Sincerely yours,
> William
--
Alan Mackenzie (Ittersbach, Germany).