From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Martin Stjernholm Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: Change of C indentation style ('{') Date: Thu, 30 Oct 2003 01:03:01 +0100 Sender: cc-mode-help-admin@lists.sourceforge.net Message-ID: <5b3cdbsibu.fsf@lister.roxen.com> References: <200310230109.KAA09465@etlken.m17n.org> <5bhe1zy4z8.fsf@lister.roxen.com> <5b1xt1l6si.fsf@lister.roxen.com> <5bn0bm7o7n.fsf@lister.roxen.com> <5boevzsv11.fsf@lister.roxen.com> <20031029214141.GA30336@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067472381 23779 80.91.224.253 (30 Oct 2003 00:06:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2003 00:06:21 +0000 (UTC) Cc: rms@gnu.org, bug-cc-mode@gnu.org, handa@m17n.org, emacs-devel@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Thu Oct 30 01:06:18 2003 Return-path: Original-Received: from lists.sourceforge.net ([66.35.250.206] helo=sc8-sf-list2.sourceforge.net) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AF0KP-0000Tv-00 for ; Thu, 30 Oct 2003 01:06:18 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net ([10.3.1.13] helo=sc8-sf-list1.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 1AF0Jw-00068B-00; Wed, 29 Oct 2003 16:05:48 -0800 Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 1AF0Iq-0000gO-00 for ; Wed, 29 Oct 2003 16:04:40 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AF0Ip-0007i0-QZ for cc-mode-help@lists.sourceforge.net; Wed, 29 Oct 2003 16:04:40 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.24) id 1AF0De-0001hC-HM for bug-cc-mode@gnu.org; Wed, 29 Oct 2003 18:59:18 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AF0HQ-0002T0-3m for bug-cc-mode@gnu.org; Wed, 29 Oct 2003 19:03:44 -0500 Original-Received: from [194.52.182.190] (helo=mail.roxen.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AF0HK-0002RD-Fi; Wed, 29 Oct 2003 19:03:06 -0500 Original-Received: by mail.roxen.com (Postfix, from userid 52) id 459B29A02; Thu, 30 Oct 2003 01:03:02 +0100 (MET) Original-Received: from lister.roxen.com (lister.roxen.com [194.52.182.147]) by mail.roxen.com (Postfix) with ESMTP id 833C99AB3; Thu, 30 Oct 2003 01:02:58 +0100 (MET) Original-Received: from mast by lister.roxen.com with local (Exim 3.36 #1 (Debian)) id 1AF0HF-0005nD-00; Thu, 30 Oct 2003 01:03:01 +0100 Original-To: Miles Bader In-Reply-To: <20031029214141.GA30336@fencepost> (Miles Bader's message of "Wed, 29 Oct 2003 16:41:41 -0500") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/20.7 (gnu/linux) X-Spam-Score: 0.0 (/) Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Unsubscribe: , List-Archive: X-Original-Date: Thu, 30 Oct 2003 01:03:01 +0100 Xref: main.gmane.org gmane.emacs.cc-mode.general:972 gmane.emacs.devel:17595 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17595 Miles Bader wrote: > On Wed, Oct 29, 2003 at 08:28:42PM +0100, Martin Stjernholm wrote: >> /.../ these macro constructs are only truly ambiguous with old K&R >> style function definitions. So it ought to be possible to solve >> with more careful checks. > > What about the example I gave (in another message) that would seem to > indicate otherwise? I can't see that it does. In your example it's possible to look at both the expression in the parenthesis and the lack of a return type. I planned to only check for the return type since it's more reliable. > [Not that I think requring `declarations' of macros is a very workable idea > -- people wouldn't do it 99% of the time] I agree. (It's the same thing with the c-font-lock-extra-types variable - I don't think it's good enough to rely on that to fontify types correctly, and so I implemented a considerably more elaborate method to recognize declarations and casts.) ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/