From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Stjernholm 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: Thu, 10 Mar 2005 23:13:51 +0100 Message-ID: <5bk6of409s.fsf@lister.roxen.com> References: Reply-To: bug-cc-mode@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110494565 23805 80.91.229.2 (10 Mar 2005 22:42:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2005 22:42:45 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org, Richard Stallman , bug-cc-mode@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Thu Mar 10 23:42:44 2005 Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D9WLV-0008Rp-R0 for sf-cc-mode-help@m.gmane.org; Thu, 10 Mar 2005 23:41:34 +0100 Original-Received: from projects.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id 19DA616122; Thu, 10 Mar 2005 14:41:31 -0800 (PST) Original-Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1D9WLH-0001Dq-IF for cc-mode-help@lists.sourceforge.net; Thu, 10 Mar 2005 14:41:19 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by sc8-sf-mx2.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41) id 1D9WLF-0003tK-S7 for cc-mode-help@lists.sourceforge.net; Thu, 10 Mar 2005 14:41:19 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1D9WLE-00079I-Fc for bug-cc-mode@gnu.org; Thu, 10 Mar 2005 17:41:16 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1D9Vun-0002eR-6R for bug-cc-mode@gnu.org; Thu, 10 Mar 2005 17:13:57 -0500 Original-Received: from [212.247.28.43] (helo=mail.roxen.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D9Vum-0002eM-Rz; Thu, 10 Mar 2005 17:13:57 -0500 Original-Received: by mail.roxen.com (Postfix, from userid 52) id 9D6AE9A2C; Thu, 10 Mar 2005 23:13:56 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by mail.roxen.com (Postfix) with ESMTP id 7348C99FF; Thu, 10 Mar 2005 23:13:53 +0100 (MET) Original-Received: from lister.roxen.com (lister.roxen.com [212.247.28.136]) by mail.roxen.com (Postfix) with ESMTP id 42C3E99B3; Thu, 10 Mar 2005 23:13:52 +0100 (MET) Original-Received: from mast by lister.roxen.com with local (Exim 3.36 #1 (Debian)) id 1D9Vuh-0004Zy-00; Thu, 10 Mar 2005 23:13:51 +0100 Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Wed, 09 Mar 2005 17:35:23 -0500") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/20.7 (gnu/linux) X-Virus-Scanned: by amavisd 0.1 X-Spam-Status: No, hits=-2.0 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,RCVD_IN_ORBS,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_GNUS_UA version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-Spam-Score: 0.2 (/) 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 0.0 SF_CHICKENPOX_PERIOD BODY: Text interparsed with . 0.0 SF_CHICKENPOX_SLASH BODY: Text interparsed with / 0.0 SF_CHICKENPOX_MINUS BODY: Text interparsed with - 0.0 SF_CHICKENPOX_AT BODY: Text interparsed with @ 0.0 SF_CHICKENPOX_APOSTROPHE BODY: Text interparsed with ' 0.1 AWL AWL: From: address is in the auto white-list 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: Thu, 10 Mar 2005 23:13:51 +0100 X-MailScanner-From: cc-mode-help-admin@lists.sourceforge.net X-MailScanner-To: sf-cc-mode-help@m.gmane.org Xref: news.gmane.org gmane.emacs.cc-mode.general:2278 gmane.emacs.devel:34436 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34436 Stefan Monnier wrote: > - why can't they use the font-lock-multiline property? > - why can't they use the jit-lock-defer-multiline property? One argument for a hook alternative to these things is that it might not be efficient/convenient to spread text properties all over the place: o Text properties stay behind when the buffer changes, and so they might become invalid. Adding code to correctly remove them before that can be tricky. o Putting text properties in place and handling stickiness etc properly is decidedly more complex than just returning a region from a hook. o Text properties take space and make various buffer operations (slightly) slower. If large quantities of them would be needed they might have noticeable effect on performance. (There are already plenty enough in fontified buffers.) Providing a hook where the font lock pattern writer can extended the region to refontify is imho a very straightforward way to give control over that aspect. I don't contend that the text properties probably are more suitable in many cases, though. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click