From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Change of C indentation style ('{') Date: Mon, 27 Oct 2003 02:02:21 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200310230109.KAA09465@etlken.m17n.org> <5bhe1zy4z8.fsf@lister.roxen.com> <5b1xt1l6si.fsf@lister.roxen.com> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1067239004 32052 80.91.224.253 (27 Oct 2003 07:16:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2003 07:16:44 +0000 (UTC) Cc: bug-cc-mode@gnu.org, handa@m17n.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Oct 27 08:16:41 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 1AE1cH-0008I2-00 for ; Mon, 27 Oct 2003 08:16:41 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AE1cH-0003H7-00 for ; Mon, 27 Oct 2003 08:16:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AE1VS-0000u1-EY for emacs-devel@quimby.gnus.org; Mon, 27 Oct 2003 02:09:38 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AE1UJ-0008Gk-Ip for emacs-devel@gnu.org; Mon, 27 Oct 2003 02:08:27 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AE1Th-0007OC-D7 for emacs-devel@gnu.org; Mon, 27 Oct 2003 02:08:20 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AE1Th-0007Np-5X for emacs-devel@gnu.org; Mon, 27 Oct 2003 02:07:49 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1AE1OP-0007PE-Kw; Mon, 27 Oct 2003 02:02:21 -0500 Original-To: Martin Stjernholm In-reply-to: <5b1xt1l6si.fsf@lister.roxen.com> (message from Martin Stjernholm on Sat, 25 Oct 2003 16:40:29 +0200) 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:17454 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17454 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(); ); } i see. this test case has the { starting a fn body not at col 0. does the improvement occur in the same way when users put the { in col 0?