primitive methods for getting current undo/redo state and comparing with another...