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 00:40:02 +0100 Message-ID: <458483D2.9020809@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> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1166312420 13279 80.91.229.10 (16 Dec 2006 23:40:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Dec 2006 23:40:20 +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 00:40:18 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 1Gvj8b-0002V9-QC for ged-emacs-devel@m.gmane.org; Sun, 17 Dec 2006 00:40:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gvj8b-0007lW-8j for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2006 18:40:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gvj8J-0007j6-Fg for emacs-devel@gnu.org; Sat, 16 Dec 2006 18:39:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gvj8I-0007hc-VZ for emacs-devel@gnu.org; Sat, 16 Dec 2006 18:39:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gvj8I-0007hS-NM for emacs-devel@gnu.org; Sat, 16 Dec 2006 18:39:58 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1Gvj8H-0002RD-N8 for emacs-devel@gnu.org; Sat, 16 Dec 2006 18:39:58 -0500 Original-Received: (qmail invoked by alias); 16 Dec 2006 23:39:56 -0000 Original-Received: from N705P013.adsl.highway.telekom.at (EHLO [62.47.32.13]) [62.47.32.13] by mail.gmx.net (mp041) with SMTP; 17 Dec 2006 00:39:56 +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:63861 Archived-At: >>This idea seems to work fairly well. The patch to syntax.c is >>attached; it adds an optional DEFUN_START argument to scan_lists which= >>is a position known to be outside any code structure. The code in >>beginning-of-defun-raw can be altered to use this as follows: > > > 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. Looking at cc-fonts.el we'd rather have to investigate all call sequences =E0 la c-backward-syntactic-ws -> c-backward-sws -> c-backward-comments which hardly seems feasible. Does anyone know whether and how XEmacs handles this?