On Fri, Nov 25, 2005 at 03:51:28PM +0100, Jean-Marc Lasgouttes wrote: > > I think the change of container from list to vector for ParagraphList > is putting us in a bad situation. Remember the weird bug I had to > solve with DEPM a few weeks ago: everytime you insert a paragraph in a > document, all subsequent paragraphs are cloned and deleted because > they have to move.
The discussion around my fix for 2015 relates to this too... you suggested the simpler fix exploiting the <vector> nature. Actually in this case I would suggest looking at the way the itemize and enumerate environments and their depths are handled. If we changed them into insets (as Andre started with) we would no longer have to maintain the env depth thing, but instead we would use the existing mechanism for moving an outerfont to inside an inset. This whole searching through paragraphs thing would go. On the other hand, we would have to handle environment depth in _some_ way anyway, e.g., by traversing the cursor stack looking for environment insets. Does this feel like an idea for 1.5? (And Lars, can I prepare _some_ loop-based fix for 2015, to go into 1.4?) - Martin
pgptVReZ4IKnJ.pgp
Description: PGP signature