From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: redundant space after run 'c-indent-new-comment-line' Date: 15 Feb 2007 23:37:34 +0100 Message-ID: <20070215235224.GB3020@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171579079 17255 80.91.229.12 (15 Feb 2007 22:37:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Feb 2007 22:37:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: William Xue Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 15 23:37:53 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HHpEf-0001sf-4r for ged-emacs-devel@m.gmane.org; Thu, 15 Feb 2007 23:37:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHpEe-0001Nk-A2 for ged-emacs-devel@m.gmane.org; Thu, 15 Feb 2007 17:37:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HHpET-0001NV-8y for emacs-devel@gnu.org; Thu, 15 Feb 2007 17:37:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HHpEQ-0001NJ-T6 for emacs-devel@gnu.org; Thu, 15 Feb 2007 17:37:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHpEQ-0001NG-NP for emacs-devel@gnu.org; Thu, 15 Feb 2007 17:37:38 -0500 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HHpEQ-0003YM-5w for emacs-devel@gnu.org; Thu, 15 Feb 2007 17:37:38 -0500 Original-Received: (qmail 59453 invoked by uid 3782); 15 Feb 2007 22:37:34 -0000 Original-Received: from acm.muc.de (p54A3FBD0.dip.t-dialin.net [84.163.251.208]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 15 Feb 2007 23:37:33 +0100 Original-Received: (qmail 5539 invoked by uid 1000); 15 Feb 2007 23:52:24 -0000 Original-Date: Thu, 15 Feb 2007 23:52:24 +0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: FreeBSD 4.6-4.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:66436 Archived-At: 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).