[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A possible way for CC Mode to resolve its sluggishness
From: |
Eli Zaretskii |
Subject: |
Re: A possible way for CC Mode to resolve its sluggishness |
Date: |
Fri, 26 Apr 2019 22:53:09 +0300 |
> Date: Fri, 26 Apr 2019 19:30:56 +0000
> From: Alan Mackenzie <address@hidden>
>
> (i) A CC Mode buffer will be partitioned into @dfn{syntactic cells}.
> These will be things like a section of code, a comment, a string, a raw
> string, a CPP construct .... Possibly even comment delimiters would
> have their own cells.
>
> (ii) Syntactic cells will be implemented by a text property, c-syntax,
> whose value will indicate the type of the cell, and possibly an
> identifier for it. Neighbouring cells will always have distinct
> c-syntax values.
Can a syntactic cell have other syntactic cells embedded in it?
Because if it can, you cannot use text properties for that, since text
properties cannot overlap.
> Thoughts?
Why do you think this proposal will make CC Mode faster? Wouldn't
computing and updating the cells in itself be expensive?