when writing emails, sometimes happens to me that I accidentally delete a part of the whole email and I have to compose it again. If there was undo/redo button, I could simply revert changes and continue writing an email.
I am not aware of any other software that uses this, but in GMAIL this is built-in (see screenshot).
Thanks for your consideration. Best wishes,