From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Samuel Bronson 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:45:04 -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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1241037924 24382 80.91.229.12 (29 Apr 2009 20:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2009 20:45:24 +0000 (UTC) Cc: "Tobias C. Rittweiler" , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 29 22:45:14 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 1LzGeY-00030V-7R for ged-emacs-devel@m.gmane.org; Wed, 29 Apr 2009 22:45:14 +0200 Original-Received: from localhost ([127.0.0.1]:49906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzGeX-0007OR-EX for ged-emacs-devel@m.gmane.org; Wed, 29 Apr 2009 16:45:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzGeS-0007Mq-Ga for emacs-devel@gnu.org; Wed, 29 Apr 2009 16:45:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzGeR-0007M6-MO for emacs-devel@gnu.org; Wed, 29 Apr 2009 16:45:07 -0400 Original-Received: from [199.232.76.173] (port=60767 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzGeR-0007Lm-H6 for emacs-devel@gnu.org; Wed, 29 Apr 2009 16:45:07 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:9101) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LzGeR-0005zD-2i for emacs-devel@gnu.org; Wed, 29 Apr 2009 16:45:07 -0400 Original-Received: from yw-out-1718.google.com ([74.125.46.155]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LzGeP-0005NC-TV for emacs-devel@gnu.org; Wed, 29 Apr 2009 16:45:06 -0400 Original-Received: by yw-out-1718.google.com with SMTP id 5so860774ywm.66 for ; Wed, 29 Apr 2009 13:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=b9EEkZhUqovztOeWlmsB9+iwT2D9tBSG606xckr7yiA=; b=dr8BISlvxCHKqXIHpNSmZF5JGMDX0punlZdir/hXjEIIbv8kTWQp+7k0JlLI8axHTv eoK5eEfJovrjt51ZokLSbiRI+xAPzH246AusG+swcBZ4/sYw/COfHBGcWQnEeJScfbpF 6EdY1jb7lrCU8zxnosq5Rq3YScNZ/sAeUG7k8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=NvgeG12cI0bNd9tNrono9QCeD8VlogArjUaTUNZ8HKCLP4BqYIMX7h8Kf8OOdm26dQ AskFMhSvN0IxspWtU6ejoBvKpTQC9eTGXvYTdUcx4E9PuNl8arg35KDYyS58LKWpga7j ZEDq3Abg9/HIsDHBkNPp1Jsh7KAhxs/FGdyhQ= Original-Received: by 10.100.140.15 with SMTP id n15mr1401085and.105.1241037904684; Wed, 29 Apr 2009 13:45:04 -0700 (PDT) In-Reply-To: X-detected-kernel: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:110560 Archived-At: On Wed, Apr 29, 2009 at 4:26 PM, Stefan Monnier wrote: >> Is this intended to be fixed? For example, the extending of the >> font-lock region could be made a seperate step which >> `jit-lock-fontify-now' has to run explicitly. > > Yes. =C2=A0This problem was introduced in Emacs-22 but at the time I deci= ded > it was better to "keep it that way for now" (the freeze was coming) and > fix it for Emacs-23, but I never got around to do it. > > 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?