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: Fri, 24 Oct 2003 11:56:25 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5bllrb5586.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 1066989492 28691 80.91.224.253 (24 Oct 2003 09:58:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2003 09:58:12 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org, Kenichi Handa Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Oct 24 11:58:10 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 1ACyht-0000Rr-00 for ; Fri, 24 Oct 2003 11:58:09 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACyht-0007Kg-00 for ; Fri, 24 Oct 2003 11:58:09 +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 1ACyhs-0007wy-76 for emacs-devel@quimby.gnus.org; Fri, 24 Oct 2003 05:58:08 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ACyhL-0007vX-II for emacs-devel@gnu.org; Fri, 24 Oct 2003 05:57:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ACygo-0007hR-Fu for emacs-devel@gnu.org; Fri, 24 Oct 2003 05:57:33 -0400 Original-Received: from [194.52.182.190] (helo=mail.roxen.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACygI-0007Po-EB; Fri, 24 Oct 2003 05:56:30 -0400 Original-Received: by mail.roxen.com (Postfix, from userid 52) id 51ED59A9C; Fri, 24 Oct 2003 11:56:26 +0200 (MEST) Original-Received: from lister.roxen.com (lister.roxen.com [194.52.182.147]) by mail.roxen.com (Postfix) with ESMTP id E663399E1; Fri, 24 Oct 2003 11:56:22 +0200 (MEST) Original-Received: from mast by lister.roxen.com with local (Exim 3.36 #1 (Debian)) id 1ACygD-0007Ya-00; Fri, 24 Oct 2003 11:56:25 +0200 Original-To: Miles Bader In-Reply-To: (Miles Bader's message of "24 Oct 2003 12:48:17 +0900") 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:17398 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17398 Miles Bader wrote: > The thing is, I wouldn't be surprised if `macro oddities' are actually > more common than the nested functions, or functions in macro arguments... You're probably right when it comes to C which uses cpp a lot. Perhaps also for C++, ObjC and Pike; they have cpp support too but it's not used quite as much there. It should be possible to add some more checks. Afterall, macro constructs like that can only be ambiguous with really old fashioned K&R style function definitions.