From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: font-lock-syntactic-keywords obsolet? Date: Mon, 20 Jun 2016 11:03:32 +0000 Message-ID: <20160620110332.GC3166@acm.fritz.box> References: <20160619133143.GA5875@acm.fritz.box> <20160619145934.GC5875@acm.fritz.box> <6bc7b3bc-ddb7-c041-9f68-f8b5faeca63b@yandex.ru> <20160619151836.GE5875@acm.fritz.box> <1d4c62e6-905b-4a51-28b8-e68169fb3269@yandex.ru> <20160619153455.GG5875@acm.fritz.box> <11c988f0-94c0-40dd-b9cd-5a5e27028b63@yandex.ru> <20160619171531.GH5875@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1466420655 20763 80.91.229.3 (20 Jun 2016 11:04:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2016 11:04:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 20 13:04:06 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bEwzt-00084M-GB for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2016 13:04:05 +0200 Original-Received: from localhost ([::1]:42747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEwzp-0003eu-B4 for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2016 07:04:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEwzE-0003ea-06 for emacs-devel@gnu.org; Mon, 20 Jun 2016 07:03:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEwzA-0002cp-RS for emacs-devel@gnu.org; Mon, 20 Jun 2016 07:03:23 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:50364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEwzA-0002ci-Hs for emacs-devel@gnu.org; Mon, 20 Jun 2016 07:03:20 -0400 Original-Received: (qmail 7558 invoked by uid 3782); 20 Jun 2016 11:03:19 -0000 Original-Received: from acm.muc.de (p548C7218.dip0.t-ipconnect.de [84.140.114.24]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 20 Jun 2016 13:03:18 +0200 Original-Received: (qmail 3804 invoked by uid 1000); 20 Jun 2016 11:03:32 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204575 Archived-At: Hello, Stefan. On Sun, Jun 19, 2016 at 08:06:25PM -0400, Stefan Monnier wrote: > > With a syntax-propertize-function instead of the current > > before/after-change-functions, I simply can't picture what would happen. > I'll help you. > > The syntax-table properties would get removed from B, C, and D at some > > indeterminate time. > Indeed (tho I could tell you exactly when, but the abstraction provided > by syntax-* doesn't depend on that). > But right when you do the buffer modification, the text after the change > is immediately marked as "out-of-date". What about the text _before_ the change, should that become out of date (as it does in CC Mode)? > > You'd then have a race condition as to whether D > > would match or mismatch some indeterminate character before A. > No: as soon as you need to look at the `syntax-table' property, the > parts marked as "out of date" will have their outdated properties > removed+reapplied, so you'll be sure to get uptodate properties at that > time. This sounds like black magic. > Stefan -- Alan Mackenzie (Nuremberg, Germany).