untrackedchangehook
ret = hook (doc, type)
This hook is called before a change is made to the document that will not be tracked. In general, the change is permitted but a warning is issued. doc is the document in which the change is being attempted. type is a string containing the name of the attempted operation (command or function) that is being called.
The return value of the hook ret may have the following values:
• 0 — to perform the operation and warn the user
• –1 — to silently abort the operation
• –2 — to abort the operation with an error