From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Martin Stjernholm Newsgroups: gmane.emacs.devel Subject: Re: Change of C indentation style ('{') Date: Sat, 25 Oct 2003 16:40:29 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5b1xt1l6si.fsf@lister.roxen.com> References: <200310230109.KAA09465@etlken.m17n.org> <5bhe1zy4z8.fsf@lister.roxen.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067092969 7309 80.91.224.253 (25 Oct 2003 14:42:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Oct 2003 14:42:49 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org, handa@m17n.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Oct 25 16:42:46 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ADPcs-00082B-00 for ; Sat, 25 Oct 2003 16:42:46 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ADPcr-0006cL-00 for ; Sat, 25 Oct 2003 16:42:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ADPcK-0000sh-9k for emacs-devel@quimby.gnus.org; Sat, 25 Oct 2003 10:42:12 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ADPbz-0000sT-8O for emacs-devel@gnu.org; Sat, 25 Oct 2003 10:41:51 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ADPbT-0000JA-7B for emacs-devel@gnu.org; Sat, 25 Oct 2003 10:41:50 -0400 Original-Received: from [194.52.182.190] (helo=mail.roxen.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ADPal-0007zV-Un; Sat, 25 Oct 2003 10:40:36 -0400 Original-Received: by mail.roxen.com (Postfix, from userid 52) id CCE299A2F; Sat, 25 Oct 2003 16:40:29 +0200 (MEST) Original-Received: from lister.roxen.com (lister.roxen.com [194.52.182.147]) by mail.roxen.com (Postfix) with ESMTP id AEA469A22; Sat, 25 Oct 2003 16:40:26 +0200 (MEST) Original-Received: from mast by lister.roxen.com with local (Exim 3.36 #1 (Debian)) id 1ADPaf-0005MH-00; Sat, 25 Oct 2003 16:40:29 +0200 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Fri, 24 Oct 2003 19:24:39 -0400") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/20.7 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17421 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17421 Richard Stallman wrote: > I'm not sure what to do about it. > > You could perhaps undo the change. That would also undo this improvement: ** Statements are recognized in a more robust way. Statements are recognized most of the time even when they occur in an "invalid" context, e.g. in a function argument. In practice that can happen when macros are involved. As an example, it fixes better indentation in this case: void f() { SOME_MACRO ( if (successful) fprintf (stderr, "ok\n"); else abort(); ); } The reason these two cases are related is because the above has been accomplished by changing the order between checks in c-guess-basic-syntax.