From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.cc-mode.general,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 Feb 2006 18:03:23 +0100 Message-ID: References: <87fymod0dt.fsf-monnier+emacs@gnu.org> <43F18C90.4050205@gmx.at> <87hd71ojgv.fsf-monnier+emacs@gnu.org> <43F239E3.2020707@gmx.at> <87vevhmzbx.fsf-monnier+emacs@gnu.org> <43F2FFAC.5030100@gmx.at> <43F338B8.8050505@gmx.at> <43F35997.7080007@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1140023176 20589 80.91.229.2 (15 Feb 2006 17:06:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2006 17:06:16 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org, Stefan Monnier , rms@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Wed Feb 15 18:06:10 2006 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F9Q6K-00034W-Ii for sf-cc-mode-help@m.gmane.org; Wed, 15 Feb 2006 18:06:01 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) by sc8-sf-spam1.sourceforge.net (Postfix) with ESMTP id 4073433171; Wed, 15 Feb 2006 09:04:13 -0800 (PST) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1F9Q4C-00039z-SJ for cc-mode-help@lists.sourceforge.net; Wed, 15 Feb 2006 09:03:48 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by mail.sourceforge.net with esmtps (TLSv1:RC4-SHA:128) (Exim 4.44) id 1F9Q4B-0005jr-Cx for cc-mode-help@lists.sourceforge.net; Wed, 15 Feb 2006 09:03:48 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1F9Q47-0007O1-RS for bug-cc-mode@gnu.org; Wed, 15 Feb 2006 12:03:43 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.52) id 1F9Q91-00081j-8C for bug-cc-mode@gnu.org; Wed, 15 Feb 2006 12:08:50 -0500 Original-Received: from [134.96.7.31] (helo=justus.rz.uni-saarland.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F9Q90-00081c-N8; Wed, 15 Feb 2006 12:08:47 -0500 Original-Received: from iwi-gate.iwi.uni-sb.de (iwi-gate.iwi.uni-saarland.de [134.96.72.13]) by justus.rz.uni-saarland.de (8.12.10/8.12.10) with ESMTP id k1FH3RrZ20918137; Wed, 15 Feb 2006 18:03:27 +0100 (CET) Original-Received: from [134.96.72.190] (helo=NEUTRINO) by iwi-gate.iwi.uni-sb.de with esmtp (Exim 4.53 (FreeBSD)) id 1F9Q3g-000Nd3-53; Wed, 15 Feb 2006 18:03:16 +0100 Original-To: martin rudalics In-Reply-To: <43F35997.7080007@gmx.at> (martin rudalics's message of "Wed, 15 Feb 2006 17:40:55 +0100") X-IWi-MailScanner-Information: Please contact the ISP for more information X-IWi-MailScanner: Found to be clean X-IWi-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 5, autolearn=disabled) X-MailScanner-From: angeli@iwi.uni-sb.de X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.1 (justus.rz.uni-saarland.de [134.96.7.31]); Wed, 15 Feb 2006 18:03:28 +0100 (CET) X-AntiVirus: checked by AntiVir Milter (version: 1.1.1-9; AVE: 6.33.0.31; VDF: 6.33.0.240; host: AntiVir2) X-Spam-Score: 1.0 (+) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 1.0 FORGED_RCVD_HELO Received: contains a forged HELO Original-Sender: cc-mode-help-admin@lists.sourceforge.net Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Wed, 15 Feb 2006 18:03:23 +0100 Xref: news.gmane.org gmane.emacs.cc-mode.general:3005 gmane.emacs.devel:50570 Archived-At: * martin rudalics (2006-02-15) writes: > But keep in > mind that with jit-lock redisplay immediately triggers refontification > of displayed text whose fontified text-property has been reset to nil. > This refontification won't recognize any "starting tag" preceding > window-start unless you explicitly tell it to go there, for example, by > using a multiline property. Ugh, that is not good. The main reason I want to use the proposed hook is to get rid of `font-lock-multiline'. With `font-lock-multiline' I am forced to set the match to the end of the region to be fontified in a matcher function as long as no ending tag was found. Otherwise the multiline text property will not be picked up in the next chunk to be fontified. Unfortunately in LaTeX (and especially docTeX) buffers can be so much junk not being used the "normal" way that this practice often leads to color being spilled all over the buffer. The idea with the hook was to apply fontification only as soon as an ending tag is found. -- Ralf ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642