From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Mysterious fontification/C++ context issue Date: Wed, 06 Dec 2006 11:31:29 -0500 Message-ID: <87odqhj89q.fsf@stupidchicken.com> References: <87y7po2e9b.fsf@leeloo.anubex.internal> <45741FBE.3000107@swipnet.se> <45742464.1090504@gmx.at> <20061204203024.D17603@colin2.muc.de> <45768797.5010106@gmx.at> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165422726 23451 80.91.229.10 (6 Dec 2006 16:32:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Dec 2006 16:32:06 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 06 17:32:04 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 1Grzgh-0005Na-TC for ged-emacs-devel@m.gmane.org; Wed, 06 Dec 2006 17:32:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Grzgh-0002hf-By for ged-emacs-devel@m.gmane.org; Wed, 06 Dec 2006 11:32:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GrzgU-0002hD-Mn for emacs-devel@gnu.org; Wed, 06 Dec 2006 11:31:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GrzgS-0002g6-GJ for emacs-devel@gnu.org; Wed, 06 Dec 2006 11:31:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GrzgS-0002g3-7u for emacs-devel@gnu.org; Wed, 06 Dec 2006 11:31:48 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GrzgS-00081f-3H for emacs-devel@gnu.org; Wed, 06 Dec 2006 11:31:48 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GrzgJ-0008OU-L5 for emacs-devel@gnu.org; Wed, 06 Dec 2006 17:31:39 +0100 Original-Received: from cyd.mit.edu ([18.19.1.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Dec 2006 17:31:39 +0100 Original-Received: from cyd by cyd.mit.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Dec 2006 17:31:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 21 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cyd.mit.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:QK4bGNy9fn3LZv+sqkMi4WFj+j8= 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:63361 gmane.emacs.pretest.bugs:15506 Archived-At: storm@cua.dk (Kim F. Storm) writes: >> 3. All this is still awfully slow and expensive: Open a larger buffer >> like xdisp.c, jump to its end, hit M-v a couple of times, and look at >> CPU consumption. > > I can second that. Working on xdisp.c has become awfully slow lately. > We definitely need to fix this before the release! I'm third. Could we set open-paren-in-column-0-is-defun-start to t for c mode? This gives the old behavior, which, though incorrect in corner cases, is at least usable. Individual users can set it back to nil if slow-but-correct fontification is desired (and it's irrelevant for anyone but Emacs hackers anyway). As for RMS's suggestion of writing a beginning-of-defun-function, I don't see any dramatic optimizations that we could employ to make that a solution for this (apart from, well, assuming that open parens in column zero are defun starts :-).