[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: |
15 Feb 2007 23:37:34 +0100 |
Date: |
Thu, 15 Feb 2007 23:52:24 +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.
> 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.
I think the essence of this bug is that point ends up further to the
right after the M-j that where it started. An M-j should NEVER do this -
normally, of course, point ends up at the far left, just after the
comment prefix.
I've committed a fix to ..../progmodes/cc-cmds.el. Could you update your
Emacs and try it out, please.
> William
--
Alan Mackenzie (Ittersbach, Germany).