Don’t disable Undo after saving
There are programs where after saving an edited document you no longer have an Undo option. Ableton Live, for example, is guilty of this.
This is crazy. I don’t know what the developers of these programs are thinking, but this demonstrates a complete misunderstanding of the raison d’être of Undo.
Don’t do this.