From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.bugs Subject: bug#341: c-indent-command misindents? Date: Mon, 28 Dec 2015 19:48:22 -0500 Message-ID: References: <5712ce4f0805310813oea4c69bub98e6bc1f5877943@mail.gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451362047 22232 80.91.229.3 (29 Dec 2015 04:07:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Dec 2015 04:07:27 +0000 (UTC) Cc: 341@debbugs.gnu.org To: Ralovich@debbugs.gnu.org, =?UTF-8?Q?Krist=C3=B3f?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 29 05:07:13 2015 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 1aDlZ2-0007sZ-CA for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Dec 2015 05:07:12 +0100 Original-Received: from localhost ([::1]:47001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDlZ1-0005R1-K1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Dec 2015 23:07:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDlYw-0005P1-W0 for bug-gnu-emacs@gnu.org; Mon, 28 Dec 2015 23:07:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aDlYv-0002rW-TP for bug-gnu-emacs@gnu.org; Mon, 28 Dec 2015 23:07:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDlYs-0002qC-2D; Mon, 28 Dec 2015 23:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aDlYr-0008NQ-TV; Mon, 28 Dec 2015 23:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 29 Dec 2015 04:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 341 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-cc-mode@gnu.org, bug-gnu-emacs@gnu.org, 341@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145136201832161 (code B ref -1); Tue, 29 Dec 2015 04:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Dec 2015 04:06:58 +0000 Original-Received: from localhost ([127.0.0.1]:47169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aDlYo-0008MZ-CO for submit@debbugs.gnu.org; Mon, 28 Dec 2015 23:06:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36725) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aDiSr-0001E0-82 for submit@debbugs.gnu.org; Mon, 28 Dec 2015 19:48:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aDiSl-00063d-Eq for submit@debbugs.gnu.org; Mon, 28 Dec 2015 19:48:32 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDiSl-00063Z-Br for submit@debbugs.gnu.org; Mon, 28 Dec 2015 19:48:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDiSk-0001zo-Cj for bug-gnu-emacs@gnu.org; Mon, 28 Dec 2015 19:48:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aDiSj-00063E-I3 for bug-gnu-emacs@gnu.org; Mon, 28 Dec 2015 19:48:30 -0500 Original-Received: from mail-qg0-x236.google.com ([2607:f8b0:400d:c04::236]:33449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDiSf-000632-Mm; Mon, 28 Dec 2015 19:48:25 -0500 Original-Received: by mail-qg0-x236.google.com with SMTP id b35so27076026qge.0; Mon, 28 Dec 2015 16:48:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=eKywAdW6x4C+GBfrJewREvE2wQftaj/UjcDf6bKG9O0=; b=hHNz3A0sRxxNAZYlXhRAVLianafWUde7PR/g85VsXUYw/Bg0088kYHgjJDrFb5SB74 qX8JnJIBHJNxUdouEl5IWrp/zTJ2A5zNiiEb7MFeiM/E/OlGb15XWRchpKkOD+VURrdL IbVt+JhxF1Aop15/MoacEtrIwuORexyJ7X/G3EkQ7TCcLO37aqBZeXww52r1Z5shuI2N nIHtrVyb+Jcq3zNtEraFiQWDbKaKXFAThL8J8LVFxPXY0HFTiuSabKloMQJTiRWCnlwg ir9/n4EzvHqR5TBmyRMcUxZaW5x6+V4456DVUYMtGC6NnrfyF9Qrqy5Q/xwaTDmVr5+l oD9Q== X-Received: by 10.140.43.9 with SMTP id d9mr73717657qga.51.1451350105292; Mon, 28 Dec 2015 16:48:25 -0800 (PST) Original-Received: from Andrews-MacBook-Pro.local.ahyatt-laptop (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id z2sm28030431qhz.38.2015.12.28.16.48.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Dec 2015 16:48:24 -0800 (PST) In-Reply-To: <5712ce4f0805310813oea4c69bub98e6bc1f5877943@mail.gmail.com> (Ralovich's message of "Sat, 31 May 2008 17:13:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 28 Dec 2015 23:06:57 -0500 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: 208.118.235.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:110943 Archived-At: I've reproduced this bug in emacs 25. It seems like a real problem, thanks (belatedly) for reporting! "Ralovich, "Krist=C3=B3f\"" writes: > Hi, > > I hope this letter ends up at the right maintainers! > > My problem is when running c-indent-command (by pressing TAB or > calling it directly) on the 4th line of the following small snippet > (same as attached file): > > 1: #ifdef A > 2: int foo(int a, int b) > 3: #else > 4: int bar(int a, int b) > 5: #endif > 6: { > 7: return a+b; > 8: } > > the line is getting indented falsely: > > 1: #ifdef A > 2: int foo(int a, int b) > 3: #else > 4: int bar(int a, int b) > 5: #endif > 6: { > 7: return a+b; > 8: } > > I think, it should not get indented, please correct me if I am wrong! > > I am using emacs 22.2 with it's default cc-mode. > > Looking forward to hearing from you! > > > Krist=C3=B3f