Opened 17 years ago

Last modified 11 years ago

#24 closed defect

Replace current undo management with document-based undo mechanism — at Initial Version

Reported by: David Aspinall <da+pgrac@…> Owned by: David Aspinall
Priority: blocker Milestone:
Component: 1:pg-eclipse Keywords:
Cc:

Description

The current undo management code uses a long history of commands sent to the prover, then weeds through them to figure out which commands need undoing and how. This is tedious and will not support context switching. Currently there is no queue of undo commands but instead a thread is made for each undo command as one-by-one they are processed by the prover; this has very poor performance.

The document itself has exactly the information needed to calculate undo commands, based on the processed position. Because the document locks the processed text, this is expected to be accurate. We can calculate a queue of commands for undoing just as we do when processing commands.

This work has begun but amounts to a major reorganisation/extension of the document model. This ticket will be used to track progress.

Change History (0)

Note: See TracTickets for help on using tickets.