From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Mysterious fontification/C++ context issue - Patch for beginning-of-defun-raw. Date: 14 Dec 2006 23:57:47 +0100 Message-ID: <20061215000821.GB1239@muc.de> References: <87odqhj89q.fsf@stupidchicken.com> <20061210014526.GB3738@muc.de> <877ix0lfm8.fsf@furball.mit.edu> <20061210102249.GA1235@muc.de> <87d56rpk7a.fsf@stupidchicken.com> <20061213224009.GA1206@muc.de> <87odq72ssy.fsf@stupidchicken.com> <20061214084713.GA1333@muc.de> <87k60utmhd.fsf@stupidchicken.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1166137132 14200 80.91.229.10 (14 Dec 2006 22:58:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2006 22:58:52 +0000 (UTC) Cc: martin rudalics , emacs-devel@gnu.org, Richard Stallman , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 14 23:58:50 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GuzXK-0006J0-Br for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 23:58:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuzXJ-0002L4-VN for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 17:58:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuzWS-0001Ze-EH for emacs-devel@gnu.org; Thu, 14 Dec 2006 17:57:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuzWP-0001WB-JB for emacs-devel@gnu.org; Thu, 14 Dec 2006 17:57:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuzWP-0001W1-6v for emacs-devel@gnu.org; Thu, 14 Dec 2006 17:57:49 -0500 Original-Received: from [193.149.48.1] (helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GuzWP-00029q-1a for emacs-devel@gnu.org; Thu, 14 Dec 2006 17:57:49 -0500 Original-Received: (qmail 70266 invoked by uid 3782); 14 Dec 2006 22:57:47 -0000 Original-Received: from acm.muc.de (p54A3E86F.dip.t-dialin.net [84.163.232.111]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 14 Dec 2006 23:57:43 +0100 (CET) Original-Received: (qmail 2339 invoked by uid 1000); 15 Dec 2006 00:08:21 -0000 Original-Date: Fri, 15 Dec 2006 00:08:21 +0000 Original-To: Chong Yidong Content-Disposition: inline In-Reply-To: <87k60utmhd.fsf@stupidchicken.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) X-Primary-Address: acm@muc.de 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:63749 Archived-At: Hi, Chong! On Thu, Dec 14, 2006 at 12:29:18PM -0500, Chong Yidong wrote: > > xdisp.c, at ~750k, is an unusually large source file. A 1.7 GHz > > machine will become unusually old and slow during the lifetime of > > Emacs 22. > There are plenty of people running Emacs on very old Unix boxes, > especially in academic environments. OK. We need options here. > >> If the only files misfontified are Emacs source files, I don't think > >> this "fix" is necessary for Emacs 22---especially if the files in > >> question can be tweaked to avoid the bug. > > It isn't only Emacs source files. It happens a lot in normal users' > > files.c. There's a FAQ about it in the CC Mode manual. After all, > > having parentheses inside strings and comments in C is perfectly > > valid and acceptable syntax, and it looks like a bug (which indeed > > it is), if Emacs can't fontify such things properly. > If the current problems are already addressed in the FAQ, that should > be enough---especially if adhering to a de facto coding standard > prevents the bug. It's not enough. The misfontification is perceived by users as a bug. And sorry, I made a mistake there - it's not in the FAQ. > With the fix, this FAQ entry would have to be replaced with another > FAQ entry: "Why is CC mode intolerably slow for big C files?" Well, more like "CC mode is intolerably slow for big files, what can I do about it?". > >> Is it really so bad to revert the changes for now? > > Yes. > > By "for now", you mean for Emacs 22. If the changes are reverted > > "for now", they'll stay reverted until the release of Emacs 23, > > sometime around 2011. > If someone can come up with a non-slow way to handle this, it could go > into emacs 22.2. By the way, one of the reasons the Emacs release > process takes so long is the addition of big problematic changes like > this during pretest. This change was made to fix a bug. It has uncovered vagueness, misunderstanding and missing functionality. It is better that such things are resolved before the release. -- Alan.