From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#11165: 24.0.95; c-indent-new-comment-line bug or feature? Date: Tue, 17 Apr 2012 21:57:52 +0800 Message-ID: References: <20120417105348.GA3429@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334671155 15060 80.91.229.3 (17 Apr 2012 13:59:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2012 13:59:15 +0000 (UTC) Cc: 11165@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 17 15:59:13 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 1SK8w3-0002mu-IE for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Apr 2012 15:59:11 +0200 Original-Received: from localhost ([::1]:41959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK8w2-00066A-Vf for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Apr 2012 09:59:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK8vv-000654-UM for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 09:59:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SK8vq-0002rH-D6 for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2012 09:59:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK8vn-0002qD-EC; Tue, 17 Apr 2012 09:58:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SK8vu-0005JR-5Y; Tue, 17 Apr 2012 09:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo 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 13:59:02 +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.133467110220347 (code B ref 11165); Tue, 17 Apr 2012 13:59:02 +0000 Original-Received: (at 11165) by debbugs.gnu.org; 17 Apr 2012 13:58:22 +0000 Original-Received: from localhost ([127.0.0.1]:38364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SK8vF-0005I7-KE for submit@debbugs.gnu.org; Tue, 17 Apr 2012 09:58:22 -0400 Original-Received: from mail-pb0-f44.google.com ([209.85.160.44]:63575) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SK8vC-0005Hm-ND for 11165@debbugs.gnu.org; Tue, 17 Apr 2012 09:58:19 -0400 Original-Received: by pbbrp16 with SMTP id rp16so4954135pbb.3 for <11165@debbugs.gnu.org>; Tue, 17 Apr 2012 06:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=/8Fu82RvBx5tooNth/n02rFagJ0qY163oFFDg3VSvJs=; b=mVcRetyWNx6i9Boxei6ZxaD1agG0587luyK1U+pxAgSLtInw7dNXG+vOv/Dqpg+WaI CruNgZhHLLO4rXeqx93A+sk/CSkMD6YuV753sEp1wLCLQTsIiOM97istVOBgHrAbWYZ9 QgvjK9IB6V/RoevYIw33hkn4ntPzj627yYMCx3CY8Jc9wPIGE9Q1hbQINgPG89UrushJ Lkv97gbh9Fe0xgT5FzZ+2YC17h9t2to0cYF+TT/em941OFoT5p5vQKAO6ZxOkZEha3ye N06EOUlk7NLuuZANAHrpEt+SCQ+Qy3DlIIgy98ewwvS9LeEcnDfKzqRpBvk+WREGB6u3 9hjA== Original-Received: by 10.68.195.232 with SMTP id ih8mr36895902pbc.118.1334671085048; Tue, 17 Apr 2012 06:58:05 -0700 (PDT) Original-Received: from localhost ([222.130.134.130]) by mx.google.com with ESMTPS id ph10sm16281668pbb.2.2012.04.17.06.58.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Apr 2012 06:58:03 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAG1BMVEUAAAA9Cgm3Hx1WWFWA gn+WmJWsrqv4+vcCAwCRl2MkAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAYoA AAGKATOXMFgAAAAHdElNRQfXAQwDNR+ZJmElAAABIklEQVQoz22SPW+DQAyGWUq65qasd9PNUSX4 AZHK2C1rJy5jpDS4IwRVup9dn7GNafpKIPPgzztXFSujqq1eM2n8h22oMkvxI/i9C97kRfMRUN55 dS3BrsAwBXUtMLAO4lryh8kTjOxKpQNniNxAgZOEe4bZwsDTFhKdqZRLNII4OQNHhEuq/RMkm6Cj TnnEA/fk0BorcYn5qA3oaeAxbaBOLrX+9G48NZ2Fzc2tzDM8Q+tMypEOqYHh8mAWaaK3U/cDMOT5 aMZMABgPXc7zPMs1A8DXO756GFJ/4fMEq47hTsAdn5avoxZ4ywl0c2w4Flu2Ybeyb3S+EqxX2DYA H8veJGEDTnHnrXvRaPyt+2kSfK6rfBZ2tUtfP/mR+pR6sX8BUZ/cDV7tvkoAAAAASUVORK5CYII= In-Reply-To: <20120417105348.GA3429@acm.acm> (Alan Mackenzie's message of "Tue, 17 Apr 2012 10:53:48 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (Mac OS X 10.6.8) 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:59170 Archived-At: On 2012-04-17 18:53 +0800, Alan Mackenzie wrote: > 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. Sorry for the splash screen. What you did instead is correct. > 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. I customise "c" after entering C mode so the customisation is effective. If you type M-j after /*, point is moved to the newline with 2 leading spaces. Now if you type TAB, it will go to column 4. so M-j is misbehaving i.e. it doesn't go to the right indentation. In contrast, M-x indent-new-comment-line following /* will move point to column 4 in the next line. Leo