From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.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: Fri, 25 Oct 2019 20:34:05 +0000 Message-ID: <20191025203405.GA24064__23524.9567589321$1572035846$gmane$org@ACM> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="171410"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: bug-cc-mode@gnu.org, 11165-done@debbugs.gnu.org To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 25 22:37:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iO6Km-000iT2-KV for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 22:37:20 +0200 Original-Received: from localhost ([::1]:35986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO6Kk-0000hT-QV for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 16:37:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35723) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO6Ia-0002yv-6K for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 16:35:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iO6IY-00010g-W5 for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 16:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58833) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iO6IY-00010a-Rm; Fri, 25 Oct 2019 16:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iO6IY-0001Zv-O7; Fri, 25 Oct 2019 16:35:02 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 25 Oct 2019 20:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 11165 X-GNU-PR-Package: emacs,cc-mode Mail-Followup-To: 11165@debbugs.gnu.org, acm@muc.de, sdl.web@gmail.com Original-Received: via spool by 11165-done@debbugs.gnu.org id=D11165.15720356555978 (code D ref 11165); Fri, 25 Oct 2019 20:35:02 +0000 Original-Received: (at 11165-done) by debbugs.gnu.org; 25 Oct 2019 20:34:15 +0000 Original-Received: from localhost ([127.0.0.1]:39420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iO6Hm-0001YM-RC for submit@debbugs.gnu.org; Fri, 25 Oct 2019 16:34:15 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:65380 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iO6Hi-0001Y2-K4 for 11165-done@debbugs.gnu.org; Fri, 25 Oct 2019 16:34:12 -0400 Original-Received: (qmail 79836 invoked by uid 3782); 25 Oct 2019 20:34:09 -0000 Original-Received: from acm.muc.de (p4FE15A47.dip0.t-ipconnect.de [79.225.90.71]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 25 Oct 2019 22:34:05 +0200 Original-Received: (qmail 24099 invoked by uid 1000); 25 Oct 2019 20:34:05 -0000 Content-Disposition: inline In-Reply-To: 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.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:170169 Archived-At: Hello, Leo. On Wed, Apr 04, 2012 at 02:30:32 +0800, Leo wrote: > 1. Emacs -q > 2. M-x c-mode > 3. customise the indentation for syntactic symbol c to 4 > 4. Enter /* and then M-j (c-indent-new-comment-line) > you should see point located at column 2 instead of 4, which is a wrong > indentation position for that line and unlike indent-new-comment-line > or newline-and-indent. > Is this a bug or feature? Thanks. It was a bug. Now, at long last, it has been fixed, specifically in commit 25ed447b7bec3af66cf0322239cfabbaf71bef26 of today, "CC Mode: Fix positioning of point whilst inserting comments without non-ws". The fix is also in the head of the default branch of stand alone CC Mode at Sourceforge. I am closing the bug with this post. Sorry it was ignored for so long. > Leo -- Alan Mackenzie (Nuremberg, Germany).