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: `font-lock-extend-region-functions' vs. `font-lock-extend-after-change-region-function' Date: Wed, 29 Apr 2009 16:53:54 -0400 Message-ID: References: <87prewlrl9.fsf@freebits.de> <873abr211r.fsf@freebits.de> <87ocufz7d5.fsf@freebits.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241038460 26029 80.91.229.12 (29 Apr 2009 20:54:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2009 20:54:20 +0000 (UTC) Cc: "Tobias C. Rittweiler" , emacs-devel@gnu.org To: Samuel Bronson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 29 22:54:11 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LzGnB-0007T5-PJ for ged-emacs-devel@m.gmane.org; Wed, 29 Apr 2009 22:54:10 +0200 Original-Received: from localhost ([127.0.0.1]:60548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzGnB-0003ae-9D for ged-emacs-devel@m.gmane.org; Wed, 29 Apr 2009 16:54:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzGn6-0003ZJ-UE for emacs-devel@gnu.org; Wed, 29 Apr 2009 16:54:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzGn2-0003TY-5l for emacs-devel@gnu.org; Wed, 29 Apr 2009 16:54:04 -0400 Original-Received: from [199.232.76.173] (port=48805 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzGn2-0003TV-3F for emacs-devel@gnu.org; Wed, 29 Apr 2009 16:54:00 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:35441) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LzGn1-0000Us-Hh for emacs-devel@gnu.org; Wed, 29 Apr 2009 16:53:59 -0400 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n3TKru5e032205; Wed, 29 Apr 2009 16:53:56 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id CEBBA3A96D; Wed, 29 Apr 2009 16:53:54 -0400 (EDT) In-Reply-To: (Samuel Bronson's message of "Wed, 29 Apr 2009 16:45:04 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3264=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:110561 Archived-At: >> The way I imagine fixing it is by changing jit-lock-functions such that >> the functions on that hook (e.g. font-lock-fontify-region) would return >> the new boundaries they used (or nil if they kept the boundaries passed >> by jit-lock). > Would that degrade gracefully in the presence of old jit-lock-functions? That would be the intention, of course (I was thinking of accepting any return value but recognizing a return value of (boundaries START END) as indication that it uses the new calling convention). Stefan