From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.devel Subject: RE: Another small problem of CC Mode Date: Fri, 12 Jan 2007 10:05:01 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1168567531 15996 80.91.229.12 (12 Jan 2007 02:05:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2007 02:05:31 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 12 03:05:30 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H5BnG-0000h9-BM for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2007 03:05:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5BnG-0003m9-1U for ged-emacs-devel@m.gmane.org; Thu, 11 Jan 2007 21:05:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H5Bn3-0003kp-Pm for emacs-devel@gnu.org; Thu, 11 Jan 2007 21:05:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H5Bn2-0003kR-2j for emacs-devel@gnu.org; Thu, 11 Jan 2007 21:05:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5Bn1-0003kH-SI for emacs-devel@gnu.org; Thu, 11 Jan 2007 21:05:07 -0500 Original-Received: from [65.54.246.222] (helo=bay0-omc3-s22.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5Bmz-0007aU-Tj for emacs-devel@gnu.org; Thu, 11 Jan 2007 21:05:07 -0500 Original-Received: from hotmail.com ([64.4.26.29]) by bay0-omc3-s22.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 11 Jan 2007 18:05:04 -0800 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 11 Jan 2007 18:05:05 -0800 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Fri, 12 Jan 2007 02:05:01 GMT X-Originating-IP: [216.145.54.7] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: Original-To: herberteuler@hotmail.com, emacs-devel@gnu.org X-OriginalArrivalTime: 12 Jan 2007 02:05:05.0258 (UTC) FILETIME=[13B6BCA0:01C735EE] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65157 Archived-At: This also shows the advantage of GNU style ;-) Regards, Guanpeng Xu >From: "Herbert Euler" >To: emacs-devel@gnu.org >Subject: Another small problem of CC Mode >Date: Fri, 12 Jan 2007 09:58:31 +0800 > >Hi, > >In a file that contains C program like this: > > extern void g(void); > extern void h(void); > > int > f(void) > { > do { > #ifdef M1 > } while (g()); > #else > } while (h()); > #endif /* M1 */ > } > >Many functions in CC mode will behave incorrectly: >`c-beginning-of-defun' and `c-end-of-defun' cannot go to the right >place; `c-indent-command' cannot indent to the right column; >`c-electric-brace' tells an error, which is not, when typing the `}' >that finishes the function `f'; and so on. > >Of course, this is rare. But will making CC Mode detect this >situation and behave in a right way need much effort? > >Thanks in advance. > >Regards, >Guanpeng Xu > >_________________________________________________________________ >FREE pop-up blocking with the new MSN Toolbar - get it now! >http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ > > > >_______________________________________________ >Emacs-devel mailing list >Emacs-devel@gnu.org >http://lists.gnu.org/mailman/listinfo/emacs-devel _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/