Use when
- A close, cancel, switch, or edit-mode exit would discard unsaved local changes.
- The editor can identify changed fields or sections and keep them available while the decision is made.
- Users need an explicit choice between saving, discarding, reviewing, and continuing to edit.
- Autosave, draft, or recovery mechanisms do not already make the current dirty buffer safe.