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: Last steps for pretesting (font-lock-extend-region-function) Date: Wed, 26 Apr 2006 00:36:57 -0400 Message-ID: <87k69dar8y.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146026668 17343 80.91.229.2 (26 Apr 2006 04:44:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2006 04:44:28 +0000 (UTC) Cc: Ralf Angeli , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 26 06:44:23 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYbsy-0002IY-24 for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 06:44:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYbsx-0007QR-JK for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2006 00:44:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYbsl-0007QM-Jh for emacs-devel@gnu.org; Wed, 26 Apr 2006 00:44:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYbsk-0007QA-3Y for emacs-devel@gnu.org; Wed, 26 Apr 2006 00:44:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYbsj-0007Q7-VI for emacs-devel@gnu.org; Wed, 26 Apr 2006 00:44:05 -0400 Original-Received: from [209.226.175.74] (helo=tomts20-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYbvL-0005Ss-Ms for emacs-devel@gnu.org; Wed, 26 Apr 2006 00:46:47 -0400 Original-Received: from alfajor ([70.55.144.118]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060426044404.IRLK16051.tomts20-srv.bellnexxia.net@alfajor>; Wed, 26 Apr 2006 00:44:04 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 53C57D7855; Wed, 26 Apr 2006 00:36:57 -0400 (EDT) Original-To: Alan Mackenzie In-Reply-To: (Alan Mackenzie's message of "Tue, 25 Apr 2006 22:16:23 +0000 (GMT)") 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 Xref: news.gmane.org gmane.emacs.devel:53442 Archived-At: >> If putting the hook into `font-lock-default-fontify-region' works >> reliably, why do you need it in `after-change-functions' and >> `jit-lock-fontify-now' as well? > It doesn't work reliably. On its own, it doesn't. Just like an after-change-function on its own is not reliable, and a font-lock-multiline on its own is not reliable. But he uses font-lock-multiline as well, and that coupled with font-lock-default-fontify-region *is* reliable. > 1: "string \ > 2: over \ > 3: several <======= point is here, having just deleted a character. > 4: lines." Come on' Alan, we've been through this: font-lock-multiline handles it just fine. Stefan