Emacs provides contextual help for keys, functions, variables, and active modes. It also protects modified file-visiting buffers during exit, giving you a chance to save or decline each write.
Advanced Text-Fu · Lesson 13
Emacs Exiting and Help
Learn how to exit Emacs safely, cancel pending commands, inspect help topics, and undo changes.