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: Another small problem of CC Mode Date: Fri, 12 Jan 2007 09:58:31 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1168567141 14905 80.91.229.12 (12 Jan 2007 01:59:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2007 01:59:01 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 12 02:58:58 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 1H5Bgy-0007V8-Hf for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2007 02:58:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5Bgy-0000Mt-E9 for ged-emacs-devel@m.gmane.org; Thu, 11 Jan 2007 20:58:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H5Bgk-0000Ki-AU for emacs-devel@gnu.org; Thu, 11 Jan 2007 20:58:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H5Bgi-0000Ht-2e for emacs-devel@gnu.org; Thu, 11 Jan 2007 20:58:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5Bgh-0000Hq-Ux for emacs-devel@gnu.org; Thu, 11 Jan 2007 20:58:35 -0500 Original-Received: from [65.54.246.214] (helo=bay0-omc3-s14.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5Bgh-0006h4-Fj for emacs-devel@gnu.org; Thu, 11 Jan 2007 20:58:35 -0500 Original-Received: from hotmail.com ([64.4.26.28]) by bay0-omc3-s14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 11 Jan 2007 17:58:34 -0800 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 11 Jan 2007 17:58:33 -0800 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Fri, 12 Jan 2007 01:58:31 GMT X-Originating-IP: [216.145.54.7] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com Original-To: emacs-devel@gnu.org X-OriginalArrivalTime: 12 Jan 2007 01:58:33.0775 (UTC) FILETIME=[2A5F2BF0:01C735ED] 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:65156 Archived-At: 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/