Download LPEX Editor User's Guide

Transcript
Examples
The examples refer to the following states of a file:
line1
line2
line3
line4
line5
State E
Most
recent
version
line1
line2
line3
line4
line1
line2
line3
line1
line2
line1
State D
State C
State B
State A
Oldest
version
The file starts in state A and is progressively changed to state B, then C, then
D, then E. A checkpoint is taken between each state.
1. To revert to state B, one state at a time, type the following command three
times:
undo
The first undo changes the file to state D, the second undo to state C and
the third undo to state B. If there are no more changes to undo, the
following message is displayed:
No recorded changes available for UNDO
2. To revert 3 states directly from, for example, state E, type:
undo 3
State B becomes the current state.
3. Now if you type:
undo -2
The last two undos are undone, and the document returns to state D.
API Return Codes
-1 Parameter specified is not a number.
-5 You cannot make changes to the file because the readonly parameter is set to on.
“autocheck Parameter” on page 165
“changes Parameter” on page 184
“check Command” on page 70
“recording Parameter” on page 312
Chapter 8. References
141