scripting:api:document:flush-undo-group