Next: Automatic Backup Deletion, Previous: Making Backups into Specific Directories, Up: Backing Up Files [Index]
When Emacs makes a backup file, its name is normally constructed by appending ‘~’ to the file name being edited.
Emacs can also make numbered backup files. Numbered backup file names contain ‘.~’, the number, and another ‘~’ after the original file name.
version-control
— a variabledetermines whether to make single backup files or mul- tiple numbered backup files. The usual way to set this variable is globally, through your init file or the customization buffer. But you can set version-control locally in an individual buffer to control the making of backups for that buffer’s file.
make single backups, unless files already have numbered backups.
make numbered backups.
never make numbered backups; always make single backups.
make-backup-file-name-function
tell Emacs what function to use to make backup names.