See also:

std-save-undo
std-restore-undo
std-enable-undo
std-disable-undo
--
ai_undo_push
ai_undo_pop