>>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:
Martin> So I gave it another try... see attached. This is essentially Martin> based upon the 'row signature' approach mentioned by Jean-Marc Martin> in a later post. Looks good, but I suspect the row signature you use is not strong enough and good give too few updates in some cases (an idea would be to multiply y by a big number so that the two parts can't mix for ex.). Also, I do not like much the fact that these signatures are stored in Paragraph. Why can't they go in rows themselves? Martin> So I had to make the inset testing more refined. Now the code Martin> traverses the inset list looking for HIGHLY_EDITABLE insets, Martin> the only ones that can contain inner text. Why not use isTextInset()? It seems to do what you want. HIGLY_EDITABLE contains maths too. What do you want to do with mathed? I am not sure I understand your argument about insets containing text. Martin> While at it, I did this test for every row separately. Testing Martin> with lyxerr-instrumented code in rowpainter showed this to be Martin> highly effective. LyX even _feels_ faster with this patch, Martin> even on Linux. Good. Martin> Currently this is implemented only for "outer" paragraphs, not Martin> text inside an inset. If it does the job, I know precisely Martin> what to do to get also the latter working. Even Better. JMarc