syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.57k stars 4.9k forks source link

[spacemacs-defaults] Do not prompt to revert from auto-save file #16325

Closed bcc32 closed 3 months ago

bcc32 commented 3 months ago

SPC b R passes nil to the IGNORE-AUTO argument of revert-buffer, which causes it to prompt the user whether they want to revert from the auto-save file. This is not the default behavior of revert-buffer; somewhat confusingly, IGNORE-AUTO is t by default when revert-buffer is called interactively.

Changing Spacemacs to use the default behavior of revert-buffer makes more sense here, as reverting from the auto-save file is rarely useful.