From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: Change of C indentation style ('{') Date: Fri, 24 Oct 2003 19:24:39 -0400 Sender: cc-mode-help-admin@lists.sourceforge.net Message-ID: References: <200310230109.KAA09465@etlken.m17n.org> <5bhe1zy4z8.fsf@lister.roxen.com> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1067038250 28607 80.91.224.253 (24 Oct 2003 23:30:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2003 23:30:50 +0000 (UTC) Cc: handa@m17n.org, bug-cc-mode@gnu.org, emacs-devel@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Sat Oct 25 01:30:48 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 1ADBOJ-0000bm-00 for ; Sat, 25 Oct 2003 01:30:47 +0200 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 1ADBOL-0002VR-00; Fri, 24 Oct 2003 16:30:49 -0700 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 1ADBMw-0001vy-00 for ; Fri, 24 Oct 2003 16:29:22 -0700 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 1ADBMv-0003GK-OK for cc-mode-help@lists.sourceforge.net; Fri, 24 Oct 2003 16:29:21 -0700 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1ADBIN-0004kb-MF; Fri, 24 Oct 2003 19:24:39 -0400 Original-To: Martin Stjernholm In-reply-to: <5bhe1zy4z8.fsf@lister.roxen.com> (message from Martin Stjernholm on Fri, 24 Oct 2003 00:16:43 +0200) 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: Fri, 24 Oct 2003 19:24:39 -0400 Xref: main.gmane.org gmane.emacs.cc-mode.general:929 gmane.emacs.devel:17413 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17413 That's because CC Mode analyzes the braces differently now. It marks them as defun-open and defun-close instead of substatement-open and substatement-close. That is because FOR_EACH_FRAME isn't recognized as a substatement introducing keyword, and barring macro oddities everything else has to be function definitions. I'm not sure what to do about it. You could perhaps undo the change. There are other cases when this new heuristic is useful, e.g. for functions in macro arguments or gcc nested functions. could you show us the cases in question? if we can't make them all work rt, we should choose the case more useful in practice and make it wrk rt. or there cd in theory be some convention used to say which way to do it. ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/