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-syntactic-keywords obsolet? Date: Sun, 19 Jun 2016 20:06:25 -0400 Message-ID: References: <20160618171249.GA5796@acm.fritz.box> <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 X-Trace: ger.gmane.org 1466381134 20209 80.91.229.3 (20 Jun 2016 00:05:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2016 00:05:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 20 02:05:25 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 1bEmiS-0007ZN-Ap for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2016 02:05:24 +0200 Original-Received: from localhost ([::1]:40513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEmiO-0005sp-Ei for ged-emacs-devel@m.gmane.org; Sun, 19 Jun 2016 20:05:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEmiJ-0005sW-19 for emacs-devel@gnu.org; Sun, 19 Jun 2016 20:05:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEmiD-0000jr-0E for emacs-devel@gnu.org; Sun, 19 Jun 2016 20:05:13 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:39104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEmiC-0000jd-P7 for emacs-devel@gnu.org; Sun, 19 Jun 2016 20:05:08 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bEmiB-0007Mt-H2 for emacs-devel@gnu.org; Mon, 20 Jun 2016 02:05:07 +0200 Original-Received: from 45.72.244.67 ([45.72.244.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jun 2016 02:05:07 +0200 Original-Received: from monnier by 45.72.244.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jun 2016 02:05:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 45.72.244.67 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:/bb0SLwbCNhHM2sDpF6vYFbNkBg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.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:204555 Archived-At: > 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". > 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. Stefan