[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: web-mode.el
From: |
Lennart Borgman |
Subject: |
Re: web-mode.el |
Date: |
Tue, 31 Jul 2012 10:46:09 +0200 |
On Wed, Jun 20, 2012 at 4:01 AM, Dmitry Gutov <address@hidden> wrote:
>
> On 19.06.2012 14:39, Lennart Borgman wrote:
>> My idea with (with-chunks chunk-table ...) that chunk-table contains
>> this information instead. Then it can be cashed by the multi major
>> mode framework.
>
> You might want to consider how syntax-ppss cache works. Since text-property
> change in considered buffer modification, `syntax-ppss-flush-cache' will be
> called from `before-change-functions', invalidating the cache entries with
> positions after the edit position, and keeping the ones before it.
> With your proposal, it would need to somehow keep track of the chunk-table,
> too.
Yes, that would be nice. (I do not remember if I corrected my self,
but a parameter to syntax-ppss corresponding to a function to get this
would be enough.)
- Re: web-mode.el, Steinar Bang, 2012/07/31
- Re: web-mode.el,
Lennart Borgman <=