On Sat, 13 Nov 1999, Ilya Zakharevich wrote:

>  From: Klaus Weide <[8][EMAIL PROTECTED]>
> > (b) Tweak HText implementation in GridText.c.  I assume it's enough to
> >     do the collapsing/expanding in a line oriented way (not affecting
> >     parts of lines, but only lines as a whole.  The required basis for
> >     this could be adding a 'visible' flag to each HTLine, which would
> >     be set/unset in some way by user actions.  [...]
> 
> No need for such monstrosities.  Just add a new field to HTLine, say,
> HiddenLines.  If you need to collapse several lines into one, create
> an HTLine for the new line, move collapsed HTLines to HiddenLines
> field of the new line, and replace these lines by the newly created
> line.  Reverse on uncollapsing.
> 
> (Of course, one may need to recalculate other hashed info in struct _HText.)

Your idea may be simpler.  I am not convinced it really is, given all
the places where lists of lines (and anchors) are being traversed.

   Klaus

Reply via email to