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: Sun, 17 Dec 2006 11:26:45 +0100 Message-ID: <45851B65.9070302@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> <4584500B.7020303@gmx.at> <87d56jzjn3.fsf@stupidchicken.com> <8764cbzg5e.fsf@stupidchicken.com> <458483D2.9020809@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 1166351773 32110 80.91.229.10 (17 Dec 2006 10:36:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Dec 2006 10:36:13 +0000 (UTC) Cc: Alan Mackenzie , Chong Yidong , Richard Stallman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 17 11:36:10 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 1GvtNG-0005FE-1H for ged-emacs-devel@m.gmane.org; Sun, 17 Dec 2006 11:36:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvtNF-00050R-6O for ged-emacs-devel@m.gmane.org; Sun, 17 Dec 2006 05:36:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GvtMq-0004xq-28 for emacs-devel@gnu.org; Sun, 17 Dec 2006 05:35:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GvtMm-0004t6-Jo for emacs-devel@gnu.org; Sun, 17 Dec 2006 05:35:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvtMl-0004su-Ra for emacs-devel@gnu.org; Sun, 17 Dec 2006 05:35:35 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GvtMl-0007CZ-KS for emacs-devel@gnu.org; Sun, 17 Dec 2006 05:35:35 -0500 Original-Received: (qmail invoked by alias); 17 Dec 2006 10:35:33 -0000 Original-Received: from N773P023.adsl.highway.telekom.at (EHLO [62.47.40.151]) [62.47.40.151] by mail.gmx.net (mp014) with SMTP; 17 Dec 2006 11:35:33 +0100 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: Stefan Monnier In-Reply-To: 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:63879 Archived-At: >>>I still haven't seen any explanation for why this code needs to be in >>>beginning-of-defun-raw. > > >>Well, it doesn't harm either. > > > Huh? Have you looked at the beginning-of-defun-raw code before the change > and compared to the monster it has become? If you look at the various threads you will notice that I was the first to fight the monster. > All this (apparently) because > cc-mode wants to use syntax-ppss-toplevel-pos via this function rather than > calling it directly? Alan had a point because the old definition of `beginning-of-defun-raw' was not entirely correct for `open-paren-in-column-0-is-defun-start' nil. > I want to remove that code and go back to what it was before, unless I can > find a *good* explanation for why it needs to be in beginning-of-defun-raw. This won't resolve the problem that a `backward-sexp' may take two seconds to execute. _Before_ Alan's change.