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: Fri, 11 Mar 2005 20:00:06 -0500 Message-ID: <87fyz1hea5.fsf-monnier+emacs@gnu.org> References: <87k6oe6bak.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 1110589350 8129 80.91.229.2 (12 Mar 2005 01:02:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Mar 2005 01:02:30 +0000 (UTC) Cc: bug-cc-mode@gnu.org, acm@muc.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 12 02:02:29 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D9v1L-0003fD-AO for ged-emacs-devel@m.gmane.org; Sat, 12 Mar 2005 02:02:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9vGW-0004SC-4p for ged-emacs-devel@m.gmane.org; Fri, 11 Mar 2005 20:18:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D9vFa-0004Kp-5j for emacs-devel@gnu.org; Fri, 11 Mar 2005 20:17:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D9vFP-0004E0-Fw for emacs-devel@gnu.org; Fri, 11 Mar 2005 20:16:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9vFP-0004Db-7N for emacs-devel@gnu.org; Fri, 11 Mar 2005 20:16:55 -0500 Original-Received: from [209.226.175.34] (helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D9uz9-0005AM-R8; Fri, 11 Mar 2005 20:00:08 -0500 Original-Received: from alfajor ([65.92.241.52]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050312010006.HZMZ1899.tomts13-srv.bellnexxia.net@alfajor>; Fri, 11 Mar 2005 20:00:06 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 43FF82FDED; Fri, 11 Mar 2005 20:00:06 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Fri, 11 Mar 2005 19:56:34 -0500") 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34496 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34496 > All the consecutive chars with a non-nil font-lock-multiline property > will always be re-fontified together. E.g. if it is put on three > consecutive lines, a modification on any of the three lines will cause > all three to be re-fontified. > Is there a way they can use font-lock to install these properties > when necessary, automatically? You can add those properties "manually" from the font-lock-keywords. You can also set the font-lock-multiline property so as to tell font-lock to try and add this property automatically: if a font-lock keyword's match extends over more than one line, font-lock will then add a font-lock-multiline property over the whole match. > Could you write documentation for this feature to put into > lispref/modes.texi? I don't have much time for it right now, but I'll keep it in mind, Stefan