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: Tue, 17 Apr 2012 10:53:48 +0000 Message-ID: <20120417105348.GA3429@acm.acm> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1334660176 19757 80.91.229.3 (17 Apr 2012 10:56:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2012 10:56:16 +0000 (UTC) To: 11165@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 17 12:56:15 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 1SK651-0007aK-4E for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Apr 2012 12:56:15 +0200 Original-Received: from localhost ([::1]:56867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK650-00017M-H9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Apr 2012 06:56:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK64s-00016t-8N for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 06:56:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SK64q-0006ii-01 for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 06:56:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK64h-0006gr-N5; Tue, 17 Apr 2012 06:55:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SK64n-0000Ac-QP; Tue, 17 Apr 2012 06:56:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: 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: Tue, 17 Apr 2012 10:56: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.1334660143574 (code B ref 11165); Tue, 17 Apr 2012 10:56:01 +0000 Original-Received: (at 11165) by debbugs.gnu.org; 17 Apr 2012 10:55:43 +0000 Original-Received: from localhost ([127.0.0.1]:37889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SK64V-00009C-9M for submit@debbugs.gnu.org; Tue, 17 Apr 2012 06:55:43 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:20225 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SK64S-000091-DJ for 11165@debbugs.gnu.org; Tue, 17 Apr 2012 06:55:41 -0400 Original-Received: (qmail 85634 invoked by uid 3782); 17 Apr 2012 10:55:31 -0000 Original-Received: from acm.muc.de (pD95565A2.dip.t-dialin.net [217.85.101.162]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 17 Apr 2012 12:55:30 +0200 Original-Received: (qmail 3454 invoked by uid 1000); 17 Apr 2012 10:53:48 -0000 Content-Disposition: inline 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:59164 Archived-At: > 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) I think you've missed out some steps here. When I do exactly that, I do M-x c-mode on the opening splash screen (which isn't sensible), which is read-only, preventing step 4. What I tried was, instead of your step 4, creating a new buffer with C-x b asdf.c, then setting the mode with M-x c-mode. > 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. I do indeed see point at column 2, which is correct. I think you might have set the offset for "c" to 4 before creating the empty C buffer. Indentation configuration is buffer local. When I then repeat the C-c C-o c 4 I then get the second line at offset 4, where it ought to be. > Is this a bug or feature? Thanks. Could you please indicate exactly what you did. I suspect this is neither bug nor feature. :-) It would be good to get this bug report closed off. Leo -- Alan Mackenzie (Nuremberg, Germany).