Must be stupid question but for some time using Emacs I have no idea how can I to not apply my changes…
When I quit C x C c it tells me :
- Type SPC or `y’ to save the current buffer;
- DEL or `n’ to skip the current buffer;
- RET or `q’ to give up on the save (skip all remaining buffers);
- C-g to quit (cancel the whole command);
- ! to save all remaining buffers;
- C-r to view this buffer;
- d to view changes in this buffer;
- or . (period) to save the current buffer and exit.
So here is some chances to not save changes : n or q but there is always saving buffer of current stage 🙁
I mean for example when I break some file by adding random text there and I don’t want to save changes I want to start edit next time not-saved (not broken) file but Emacs is always opening saved buffer 🙁 How to solve it?
Your phrasing of the question is very confusing. I think you want to add
revert to the list of options offered? This code adds , for revert
and % to mark buffer as not modified: