Opened 17 years ago

Closed 17 years ago

Last modified 11 years ago

#20 closed defect (fixed)

Fix ProofScriptEditor to change symbols cleanly

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

Description

ProofScriptEditor should change symbols cleanly, ideally without editing the underlying document text. We should keep the underlying document text with/without symbols according to preference and the menubar toggle; saved documents on disk should always be without symbols.

Change History (4)

comment:1 Changed 17 years ago by Graham Dutton

See Texlipse for details?

comment:2 Changed 17 years ago by David Aspinall

Unfortunately, when I looked at it last, Texlipse did not support symbols in this way at all, it just provided convenience mechanisms for inserting tokens into TeX documents.

I have made numerous fixes so document on disk is always tokenised. I've added a new SymbolisedDocument and added basiscs of mechanism to record edits for symbol replacement to create position maps (which can be used to get correct offset locations for searches). This is quite fiddly and will need further work and improvement later, e.g. to insert positions for symbols as they are entered in document edits.

comment:3 Changed 17 years ago by David Aspinall

Resolution: fixed
Status: newclosed

Fixed now; using positions which move with insertions and deletions preserves the command boundaries properly, so we can safely symbolise/desymbolise the active script. It still might be preferable to represent the symbolised document as a view on the underlying file text (rather than editing it), but this is currently tricky in Eclipse (viz, efforts to do word wrapping in the editor).

comment:4 Changed 11 years ago by David Aspinall

Milestone: PG-Eclipse-1.0.6

Milestone PG-Eclipse-1.0.6 deleted

Note: See TracTickets for help on using tickets.