Is there a way to remove unsaved text and get back the latest saved state of a file in Emacs without using undo
?
Like this:
| a - write some text to save
| b - save the file
| c - add some text to remove
| d - more text to remove
| e - command/function to remove all text after b
a-b-c-d-e
instead ofa-b-c-d-d
?