From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: regexp font-lock highlighting Date: Sat, 11 Jun 2005 19:17:03 -0400 Message-ID: References: <429AD1B5.1020408@gmx.at> <42A16247.7010204@gmx.at> <42A4186E.1080902@gmx.at> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1118533603 27318 80.91.229.2 (11 Jun 2005 23:46:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Jun 2005 23:46:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 12 01:46:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DhFg9-0006Rb-FX for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2005 01:46:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhFkd-0002Cm-11 for ged-emacs-devel@m.gmane.org; Sat, 11 Jun 2005 19:50:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DhFdN-00066j-NJ for emacs-devel@gnu.org; Sat, 11 Jun 2005 19:43:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DhFdN-00066P-4P for emacs-devel@gnu.org; Sat, 11 Jun 2005 19:43:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhFZW-0004JO-T1 for emacs-devel@gnu.org; Sat, 11 Jun 2005 19:39:26 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DhFEu-00082K-B5 for emacs-devel@gnu.org; Sat, 11 Jun 2005 19:18:08 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DhFDr-0006us-LH; Sat, 11 Jun 2005 19:17:03 -0400 Original-To: martin rudalics In-reply-to: <42A4186E.1080902@gmx.at> (message from martin rudalics on Mon, 06 Jun 2005 11:33:34 +0200) 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:38610 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38610 I could avoid painting regexp groups that span multiple lines, but this would deprive me from highlighting many interesting things. I could set `font-lock-lines-before' to a higher value but this would slow down fontification in general and still not handle all cases. The current code seems simply to highlight all the \\( and \\) constructs. That seems to be reliable, and sufficient for me at least to match them up. So I am not sure this ought to be changed further. Maybe we should leave well enough alone. Anyway, I believe that I found a solution that does the right thing in most cases and will send it to you in the next days. Could you dscribe in words what it does?