Variable: undo-in-progress

Non-nil while performing an undo.
Some change-hooks test this variable to do something different.