emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: redundant space after run 'c-indent-new-comment-line'


From: William Xue
Subject: Re: redundant space after run 'c-indent-new-comment-line'
Date: Thu, 15 Feb 2007 09:51:07 +0800
User-agent: Opera Mail/9.20 (Win32)

On Thu, 15 Feb 2007 06:34:40 +0800, Alan Mackenzie <address@hidden> wrote:

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

Yes, that is what I want.


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.

Thank you!


Thanks!

Thank you!

--
Sincerely yours,
William




--
Sincerely yours,
William




reply via email to

[Prev in Thread] Current Thread [Next in Thread]