From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Mysterious fontification/C++ context issue - Patch for beginning-of-defun-raw. Date: Wed, 13 Dec 2006 20:02:37 -0500 Message-ID: <87odq72ssy.fsf@stupidchicken.com> References: <45742464.1090504@gmx.at> <20061204203024.D17603@colin2.muc.de> <45768797.5010106@gmx.at> <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> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1166058179 22295 80.91.229.10 (14 Dec 2006 01:02:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2006 01:02:59 +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 02:02:56 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 1Guezp-0003RK-SF for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 02:02:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Guezp-0007BN-BM for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2006 20:02:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Guezb-00078z-B7 for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:02:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gueza-00077Q-1S for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:02:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuezZ-00077A-RO for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:02:33 -0500 Original-Received: from [18.19.1.138] (helo=cyd.mit.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GuezX-0006mp-Kd; Wed, 13 Dec 2006 20:02:31 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 207F14E43D; Wed, 13 Dec 2006 20:02:37 -0500 (EST) Original-To: Alan Mackenzie In-Reply-To: <20061213224009.GA1206@muc.de> (Alan Mackenzie's message of "13 Dec 2006 22\:29\:42 +0100\, Wed\, 13 Dec 2006 22\:40\:09 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) 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:63694 Archived-At: >> In any case, could someone check in Martin's optimization to >> c-beginning-of-defun-raw, or send me the patch with a changelog so >> that I can check it in? > > Chong, especially: Please load xdisp.c with the following patch, and tell > me whether or not its slowness is still a problem. Before the changes beginning-to-defun-raw, doing M-> to move to the end of xdisp.c is instantaneous. With the patch applied, M-> takes four seconds. This is on a Pentium 4 1700MHz computer. Is it really so bad to revert the changes for now? 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. (AFAIK, the issue of how to see this problem was never discussed on this mailing list, but I've certainly never come across it in my frequent perusal of the Emacs sources.)