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#20146: font-lock-extend-jit-lock-region-after-change: results are discarded instead of being returned. Date: Wed, 25 Mar 2015 14:26:06 -0400 Message-ID: References: <20150319230136.GC2753@acm.fritz.box> <20150320160744.GA3493@acm.fritz.box> <20150321000003.GF3493@acm.fritz.box> <20150321210325.GC3001@acm.fritz.box> <20150322141335.GA3053@acm.fritz.box> <20150325171204.GA3833@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427308055 2436 80.91.229.3 (25 Mar 2015 18:27:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Mar 2015 18:27:35 +0000 (UTC) Cc: 20146@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 25 19:27:23 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yaq1J-0002Fd-Fz for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Mar 2015 19:27:13 +0100 Original-Received: from localhost ([::1]:40768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yaq1I-0005ZF-RR for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Mar 2015 14:27:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yaq1B-0005TG-Sb for bug-gnu-emacs@gnu.org; Wed, 25 Mar 2015 14:27:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yaq18-0005ml-CY for bug-gnu-emacs@gnu.org; Wed, 25 Mar 2015 14:27:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yaq18-0005mX-9r for bug-gnu-emacs@gnu.org; Wed, 25 Mar 2015 14:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yaq17-0005vQ-OU for bug-gnu-emacs@gnu.org; Wed, 25 Mar 2015 14:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Mar 2015 18:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20146 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20146-submit@debbugs.gnu.org id=B20146.142730797522723 (code B ref 20146); Wed, 25 Mar 2015 18:27:01 +0000 Original-Received: (at 20146) by debbugs.gnu.org; 25 Mar 2015 18:26:15 +0000 Original-Received: from localhost ([127.0.0.1]:36614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yaq0N-0005uR-Co for submit@debbugs.gnu.org; Wed, 25 Mar 2015 14:26:15 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:63491) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yaq0L-0005uB-LK for 20146@debbugs.gnu.org; Wed, 25 Mar 2015 14:26:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVTO+KpL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCwsOJgcLFBgNJIgTohGMKTsJAQIBAoM+AwwBAQcHg1QEo2OEWA X-IPAS-Result: AgUFAGvvdVTO+KpL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCwsOJgcLFBgNJIgTohGMKTsJAQIBAoM+AwwBAQcHg1QEo2OEWA X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="114570278" Original-Received: from 206-248-170-75.dsl.teksavvy.com (HELO pastel.home) ([206.248.170.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Mar 2015 14:26:07 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 02E772441; Wed, 25 Mar 2015 14:26:06 -0400 (EDT) In-Reply-To: <20150325171204.GA3833@acm.fritz.box> (Alan Mackenzie's message of "Wed, 25 Mar 2015 17:12:05 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100928 Archived-At: > OK. But I have to be aware of how jit-lock works: in particular how the > actions in after-change-functions influence those of > jit-lock-fontify-now and font-lock-fontify-region. No, that's the wrong way to go about it. Just assume jit-lock is an *adversary*, which chooses the bounds it passes to font-lock-fontify-region trying to find holes in your code. Stefan