From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#11165: 24.0.95; c-indent-new-comment-line bug or feature? Date: Thu, 17 May 2012 10:12:05 +0000 Message-ID: <20120517101205.GA3323@acm.acm> References: <20120417105348.GA3429@acm.acm> <20120515165038.GB20152@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1337249700 32542 80.91.229.3 (17 May 2012 10:15:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 May 2012 10:15:00 +0000 (UTC) Cc: 11165@debbugs.gnu.org To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 17 12:14:59 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SUxjX-0006PV-AV for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 May 2012 12:14:59 +0200 Original-Received: from localhost ([::1]:57732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUxjW-0001iB-Jf for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 May 2012 06:14:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUxjT-0001hq-8n for bug-gnu-emacs@gnu.org; Thu, 17 May 2012 06:14:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUxjO-0002bR-C7 for bug-gnu-emacs@gnu.org; Thu, 17 May 2012 06:14:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUxjL-0002b0-Ky; Thu, 17 May 2012 06:14:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SUxjZ-0000G9-No; Thu, 17 May 2012 06:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 17 May 2012 10:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11165 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 11165-submit@debbugs.gnu.org id=B11165.1337249688962 (code B ref 11165); Thu, 17 May 2012 10:15:01 +0000 Original-Received: (at 11165) by debbugs.gnu.org; 17 May 2012 10:14:48 +0000 Original-Received: from localhost ([127.0.0.1]:58682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUxjL-0000FS-68 for submit@debbugs.gnu.org; Thu, 17 May 2012 06:14:48 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:22822 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUxjI-0000FK-VG for 11165@debbugs.gnu.org; Thu, 17 May 2012 06:14:46 -0400 Original-Received: (qmail 80405 invoked by uid 3782); 17 May 2012 10:14:28 -0000 Original-Received: from acm.muc.de (pD9556868.dip.t-dialin.net [217.85.104.104]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 17 May 2012 12:14:27 +0200 Original-Received: (qmail 3480 invoked by uid 1000); 17 May 2012 10:12:05 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60116 Archived-At: Hi, Leo. On Thu, May 17, 2012 at 03:19:56PM +0800, Leo wrote: > On 2012-05-16 00:50 +0800, Alan Mackenzie wrote: > > I don't think this is a bug. When you've read that manual page, would > > you please check exactly what you've done, and whether your buffer > > indents as we both would like. > I have read the manual before and I just read it again. Here is a > detailed recipe to reproduce: > 1. Emacs -q > 2. Make a new buffer named BUG and enable c-mode in it > 3. C-c C-o and customise syntactic 'c' to 4 in BUG buffer > 4. Now typing in the BUG buffer slash star /*, then press M-j > 5. type TAB to indent Thanks for this clarification. [ .... ] > The bug is M-j (c-indent-new-comment-line) indents to the wrong column. Yes, indeed. In c-indent-new-comment-line there are some lines of code which prevent point ending up further to the right than its starting point. This was to fix a bug in which, after M-; M-j, point ended up too far to the right. The fix was erroneous. This code was committed on 2007-02-15, so it doesn't count as a regression in the sense of the Emacs 24 release. So even though the fix shouldn't be too difficult, it isn't the most urgent thing at the moment. I'll get it fixed in CC Mode standalone and the Emacs trunk sometime. In the meantime, a workaround is to type after each M-j, irritating though this may be. -- Alan Mackenzie (Nuremberg, Germany).