Additional Command 'edit inspect'

pathName edit inspect ?stack?

Returns information about all undo, or redo, atoms. If stack is specified (must be either undo or redo), then only the information of this stack will be returned, otherwise the result contains two lists, firstly all undo atoms, and secondly all redo atoms. Any atom information contains at least one sub-atom.

This is an informal description about the sub-atom content:

{clear}

Redo clearing tag associations (tag clear).

{clear <tag-list> <skip> <length> ...}

Undo clearing tag associations (tag clear).

{delete}

Redo the deletion either of characters, hyphen, embedded image, or embedded window (delete).

{delete character <string> <tag-list>}

Undo the deletion of characters (delete), does not contain soft hyphens.

{delete hyphen <tag-list>}

Undo the deletion of a soft hyphen (delete).

{delete image <tag-list> <image-options>}

Undo the deletion of an embedded image (delete).

{delete window <tag-list> <window-options>}

Undo the deletion of an embedded window (delete).

{insert}

Undo an insert operation; either characters, hyphen, embedded image, or embedded window.

{insert character <string> <tag-list>}

Redo an insert operation of characters.

{insert hyphen <tag-list>}

Redo an insert operation of a soft hyphen.

{insert image <tag-list> <image-options>}

Redo an insert operation of an embedded image.

{insert window <tag-list> <window-options>}

Redo an insert operation of an embedded window.

{mark gravity <name>}

Undo/redo toggling the gravity of a mark; either from left to right, or from right to left (tag gravity).

{mark set <name> left}

Undo/redo setting a mark with left gravity (mark set).

{mark set <name> right}

Undo/redo setting a mark with right gravity (mark set).

{mark unset <name>}

Undo/redo unsetting a mark (mark unset).

{tag add <tag>}

Undo/redo adding an association with tags (tag add).

{tag remove <tag>}

Undo/redo removing an association with tags (tag delete).

Below is a demonstration for edit inspect, this demonstration is also a good example for the capability of the new undo/redo mechanism. Note that this is only a demonstration for undo/redo, it is intended that selecting one of the display options do not have effects. This script also demonstrates the use of new option -maxredo.