[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax ambiguities in narrowed buffers and multiple major modes: a p
From: |
Stefan Monnier |
Subject: |
Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution. |
Date: |
Tue, 28 Feb 2017 14:09:54 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
>> Yes, the state depends on where we start parsing. But there is
>> a privileged state which is the one rendered visible via font-lock, and
>> that's the one syntax-ppss intends to cache.
> That sounds like an intended resolution of the current ambiguity of the
> starting position of syntax-ppss's cache. Or am I reading too much into
> the sentence?
I think you're reading too much into it ;-)
E.g. in order for font-lock to give the right result, we sometimes need
to run it (and syntax-ppss) on an "island".
> OK. But any time the current syntax-table is changed, the cache becomes
> invalid. For such operations, there really needs to be a means of
> isolating the cache from the syntactic operations, and vice versa.
That's right. But I think it's important to be able to *temporarily*
invalidate the cache (so as soon as you leave the with-syntax-table,
the old cache is reinstated).
Stefan
- Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution., (continued)
- Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution., Stefan Monnier, 2017/02/26
- Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution., Alan Mackenzie, 2017/02/26
- Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution., Stefan Monnier, 2017/02/26
- Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution., Alan Mackenzie, 2017/02/27
- Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution., Stefan Monnier, 2017/02/27
- Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution., Stefan Monnier, 2017/02/27
- Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution., Dmitry Gutov, 2017/02/27
- Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution., Alan Mackenzie, 2017/02/28
- Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution.,
Stefan Monnier <=
- Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution., Alan Mackenzie, 2017/02/28