[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock-syntactic-keywords obsolet?
From: |
Stefan Monnier |
Subject: |
Re: font-lock-syntactic-keywords obsolet? |
Date: |
Sun, 19 Jun 2016 20:06:25 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> 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
- Re: font-lock-syntactic-keywords obsolet?, (continued)
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/21
- Re: font-lock-syntactic-keywords obsolet?, Andreas Röhler, 2016/06/21
- Re: font-lock-syntactic-keywords obsolet?, John Wiegley, 2016/06/21
- Re: font-lock-syntactic-keywords obsolet?, Eli Zaretskii, 2016/06/21
- Re: font-lock-syntactic-keywords obsolet?, Andreas Röhler, 2016/06/27
- Re: font-lock-syntactic-keywords obsolet?, Andreas Röhler, 2016/06/21
- Re: font-lock-syntactic-keywords obsolet?, Eli Zaretskii, 2016/06/21
- Re: font-lock-syntactic-keywords obsolet?, Alan Mackenzie, 2016/06/21
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/21
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/21
- Re: font-lock-syntactic-keywords obsolet?,
Stefan Monnier <=
- Re: font-lock-syntactic-keywords obsolet?, Alan Mackenzie, 2016/06/20
- Re: font-lock-syntactic-keywords obsolet?, Stefan Monnier, 2016/06/20
- Re: font-lock-syntactic-keywords obsolet?, Stefan Monnier, 2016/06/20
- Re: font-lock-syntactic-keywords obsolet?, John Wiegley, 2016/06/20
- Re: font-lock-syntactic-keywords obsolet?, Stefan Monnier, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Stefan Monnier, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Stefan Monnier, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Andreas Röhler, 2016/06/20
- Re: font-lock-syntactic-keywords obsolet?, Stefan Monnier, 2016/06/19