X

Undo - cancels the last command that changed the item.

Syntax

X

Limitations

This command is useful if only the most recently entered command in an editing session is erroneous.

This command must be used before an F (Flip) or FS (File Save) command is issued.

X Following Multiple Line Replacement

When X is executed once immediately after a multiline replace (R command), just the last line changed is restored to its state before the R command was executed. If X is executed a second time, all of the lines changed by the R command are restored to their states before it was executed.

Note

To cancel all changes since the last F or FS command, use the XF command.

Message

When the effect of the update command has been cancelled, the message L n is displayed, where n is the number of the line on which the update was undone.

Example

:ED MD TEST1
Top
.P
001 The ABC Computer Company
002 XYZ Corporation
003 123 Main Street
004 P.O. Box 19501
005 Anytown, California
006 (714) 555-1234
EOI 006
.1
001 The ABC Computer Company
.DE
.3
003 123 Main Street
.R/Street/Boulevard
003 123 Main Boulevard
.5
005 Anytown, California
.I
005+Administration
005+Engineering
005+Manufacturing
005+Return
.X
L 5
.FS
Top
.P
001 XYZ Corporation
002 123 Main Boulevard
003 P.O. Box 19501
004 Anytown, California
005 (714) 555-1234
EOI 005
.



Display contents of item TEST1 in the MD file.








Delete line 001 of the item.


Replace Street with Boulevard.



Insert the following lines.




Undo the last of the above edits.
Editor indicates line in which an edit was not saved.


Last edit performed was not filed. Note that the old line 1 was deleted and that Street was changed to Boulevard in what is now line 2.