The changes parameter can be used to determine the number of completed undoable changes that have been made since the last save. If the current change has not been completed, the current change will not be reflected by the changes parameter; you can use the dirty parameter to determine if there is an uncompleted change.
query command
The current view.
query changes
query changes
query command
save command
undo command
autoCheck parameter
dirty parameter
recording parameter