From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [sigra@home.se: C++-mode: Syntax highlighting: wrong color for function identifier depending on the kind of whitespace that follows] Date: Wed, 15 Mar 2006 05:22:41 -0500 Message-ID: <8764mg57rc.fsf-monnier+emacs@gnu.org> References: <87d5go7kef.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142418199 2138 80.91.229.2 (15 Mar 2006 10:23:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Mar 2006 10:23:19 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Alan Mackenzie , emacs-devel@gnu.org, "Richard M. Stallman" , martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 15 11:23:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FJT9o-0003xq-IF for ged-emacs-devel@m.gmane.org; Wed, 15 Mar 2006 11:23:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FJT9n-0005A0-SG for ged-emacs-devel@m.gmane.org; Wed, 15 Mar 2006 05:23:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FJT9Y-00056e-Dw for emacs-devel@gnu.org; Wed, 15 Mar 2006 05:22:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FJT9W-00054j-BA for emacs-devel@gnu.org; Wed, 15 Mar 2006 05:22:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FJT9W-00054Z-5u for emacs-devel@gnu.org; Wed, 15 Mar 2006 05:22:50 -0500 Original-Received: from [209.226.175.4] (helo=tomts16-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FJTDn-0001aZ-Dx; Wed, 15 Mar 2006 05:27:15 -0500 Original-Received: from alfajor ([67.71.115.9]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060315102241.JTMW27612.tomts16-srv.bellnexxia.net@alfajor>; Wed, 15 Mar 2006 05:22:41 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id A5432D73BA; Wed, 15 Mar 2006 05:22:41 -0500 (EST) Original-To: Ralf Angeli In-Reply-To: (Ralf Angeli's message of "Wed, 15 Mar 2006 10:02:51 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (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:51657 Archived-At: > For that to work correctly I also had to adapt > `jit-lock-context-unfontify-pos' in the custom function as suggested by > you earlier. Otherwise the part of the region before the line where > a change happened won't get refontified correctly. That means it will > only be refontified upon redisplay (I guess), e.g. if one enters the > minibuffer with `M-x'. So I wonder if a hook in > `font-lock-default-fontify-region' might have to cater for that as well. Yes, indeed. But we can make font-lock-default-fontify-region take care of it transparently without the hook having to know about it. Stefan