From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Mysterious fontification/C++ context issue - Patch for beginning-of-defun-raw. Date: Sat, 16 Dec 2006 19:27:49 +0100 Message-ID: <45843AA5.5080906@gmx.at> References: <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> <87odq72ssy.fsf@stupidchicken.com> <20061214084713.GA1333@muc.de> <45812BDF.5050107@gmx.at> <4583C7D3.1070703@gmx.at> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1166293709 24839 80.91.229.10 (16 Dec 2006 18:28:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Dec 2006 18:28:29 +0000 (UTC) Cc: Alan Mackenzie , Chong Yidong , emacs-devel@gnu.org, Stefan Monnier , Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 16 19:28:23 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 1GveGi-00079h-3U for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2006 19:28:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GveGh-0006Xd-8P for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2006 13:28:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GveGP-0006Ts-PU for emacs-devel@gnu.org; Sat, 16 Dec 2006 13:28:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GveGN-0006Pb-PV for emacs-devel@gnu.org; Sat, 16 Dec 2006 13:28:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GveGN-0006On-Jn for emacs-devel@gnu.org; Sat, 16 Dec 2006 13:27:59 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GveGM-0007Po-TX for emacs-devel@gnu.org; Sat, 16 Dec 2006 13:27:59 -0500 Original-Received: (qmail invoked by alias); 16 Dec 2006 18:27:57 -0000 Original-Received: from M3180P030.adsl.highway.telekom.at (EHLO [88.117.45.126]) [88.117.45.126] by mail.gmx.net (mp033) with SMTP; 16 Dec 2006 19:27:57 +0100 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: martin rudalics In-Reply-To: <4583C7D3.1070703@gmx.at> X-Y-GMX-Trusted: 0 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:63840 Archived-At: The slowdown comes from `open-paren-in-column-0-is-defun-start' being nil when scanning lists backward. You can try this with an Emacs before Alan's change. Open xdisp.c, put point after the braces in void syms_of_xdisp () { ... } and do a `backward-sexp'. On my system it takes two seconds. The problem goes away when you set `open-paren-in-column-0-is-defun-start' to t in C mode.