I can’t seems to find information on when does Emacs makes backups. It generally works great, but today I’ve lost some part of a file because of Magit infamous revert shortcut and after looking at my backups directory don’t find any of the files I’ve worked on today. Everything seems to be there for previous days tough.
Share
Emacs backs up when you visit files, and auto-saves periodically when you edit – the manual (linked above) details things to change to make that process more aggressive. Unfortunately,
pressing
vin the status buffer for magit does not count as either visiting or editing the file, but note that a patch was commited to magit to ask for confirmation before reverting.