From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#192: regexp does not work as documented Date: Mon, 12 May 2008 12:29:01 -0400 Message-ID: References: <87k5i8ukq8.fsf@stupidchicken.com> <200805061335.11379.bruno@clisp.org> <48204B3D.6000500@gmx.at> <4826A303.3030002@gmx.at> <87abiwoqzd.fsf@stupidchicken.com> Reply-To: Stefan Monnier , 192@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210611137 8648 80.91.229.12 (12 May 2008 16:52:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 May 2008 16:52:17 +0000 (UTC) Cc: Chong Yidong , 192@emacsbugs.donarmstrong.com, Bruno Haible , emacs-devel@gnu.org To: David Koppelman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 12 18:52:53 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JvbGa-00077Q-EO for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 May 2008 18:52:49 +0200 Original-Received: from localhost ([127.0.0.1]:42053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvbFp-0001Kn-JD for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 May 2008 12:52:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JvbFi-0001Kc-S4 for bug-gnu-emacs@gnu.org; Mon, 12 May 2008 12:51:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JvbFd-0001Jz-Ce for bug-gnu-emacs@gnu.org; Mon, 12 May 2008 12:51:53 -0400 Original-Received: from [199.232.76.173] (port=56247 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvbFd-0001Jw-8d for bug-gnu-emacs@gnu.org; Mon, 12 May 2008 12:51:49 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43578) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JvbFa-0003y9-Hg for bug-gnu-emacs@gnu.org; Mon, 12 May 2008 12:51:49 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4CGpdt3022038; Mon, 12 May 2008 09:51:39 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m4CGZ33m019392; Mon, 12 May 2008 09:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 12 May 2008 16:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 192 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 192-submit@emacsbugs.donarmstrong.com id=B192.121060975118641 (code B ref 192); Mon, 12 May 2008 16:35:03 +0000 Original-Received: (at 192) by emacsbugs.donarmstrong.com; 12 May 2008 16:29:11 +0000 Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4CGT7Pe018635 for <192@emacsbugs.donarmstrong.com>; Mon, 12 May 2008 09:29:09 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AocDACoNKEjO+JgrdGdsb2JhbACBU5A7ASeYRA X-IronPort-AV: E=Sophos;i="4.27,474,1204520400"; d="scan'208";a="20421324" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 12 May 2008 12:29:02 -0400 Original-Received: from pastel.home ([206.248.152.43]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id SVP40602; Mon, 12 May 2008 12:29:02 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D415C801D; Mon, 12 May 2008 12:29:01 -0400 (EDT) In-Reply-To: (David Koppelman's message of "Mon, 12 May 2008 10:03:52 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 12 May 2008 12:51:53 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17978 Archived-At: > I'm proposing that font-lock divide keywords into two or three > classes, ordinary, multi-line, and maybe mega-line, matches for > multi-line and mega-line keywords would be over much larger > regions. Here is how it might work with two classes (keep in mind that > I don't yet have a thorough understanding of font-lock and jit-lock): I do not understand how you propose to solve the main problem: Let's say you want to fontify a line spanning chars 100..200 and a multiline region spanning 0..400. Before fontifying, you need to unfontify. The region 100..200 can be completely unfontified, but what about 0..99 and 201..400? You can't unfontify them completely since you don't want to refontify them completely either, so you'd need to figure out which part of the fontification comes from the multiline keywords. Also, the order between keywords is important, so unless you force all multiline keywords to go at the very end, you'd also need to remove (on the 0..99 and 201..400 regions) the fontification coming from small keywords that were placed after multiline keywords and reapply it afterwards? Stefan