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 20:59:07 +0100 Message-ID: <4584500B.7020303@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> <45843AA5.5080906@gmx.at> <45844243.4060706@gmx.at> <87hcvvzlco.fsf@stupidchicken.com> 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 1166299170 7946 80.91.229.10 (16 Dec 2006 19:59:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Dec 2006 19:59:30 +0000 (UTC) Cc: Alan Mackenzie , Stefan Monnier , Richard Stallman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 16 20:59:28 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 1Gvfgp-0007i2-Bd for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2006 20:59:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gvfgo-0004H3-U8 for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2006 14:59:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gvfgb-0004Gm-MI for emacs-devel@gnu.org; Sat, 16 Dec 2006 14:59:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gvfga-0004G0-87 for emacs-devel@gnu.org; Sat, 16 Dec 2006 14:59:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvfgZ-0004Fw-WE for emacs-devel@gnu.org; Sat, 16 Dec 2006 14:59:08 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GvfgZ-0005Qa-Tw for emacs-devel@gnu.org; Sat, 16 Dec 2006 14:59:08 -0500 Original-Received: (qmail invoked by alias); 16 Dec 2006 19:59:06 -0000 Original-Received: from N732P025.adsl.highway.telekom.at (EHLO [62.47.35.121]) [62.47.35.121] by mail.gmx.net (mp009) with SMTP; 16 Dec 2006 20:59:06 +0100 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: Chong Yidong In-Reply-To: <87hcvvzlco.fsf@stupidchicken.com> 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:63845 Archived-At: > The trouble is that find_defun_start will scan from bob if > open_paren... is 0: I see. Does it do that for every single comment in `syms_of_xdisp' or is there something particular which triggers it in certain comments only? Anyway, I'm afraid there's nothing we can do here at the moment. I'm convinced that this bug is responsible for C mode being slow over the past year. Eventually, Stefan will have to move syntax-ppss in here. So far let's avoid setting `open-paren-in-column-0-is-defun-start' to nil for _any_ mode. Unless you have an idea ...