Emacs backup is automatically disabled for versioned files

For some reason, my emacs do not back up files with a controlled version. Here are the settings in my .emacs

(defvar backup-dir (expand-file-name "~/.emacs.d/backup/")) (defvar autosave-dir (expand-file-name "~/.emacs.d/autosave/")) (setq backup-directory-alist (list (cons ".*" backup-dir))) (setq auto-save-list-file-prefix autosave-dir) (setq auto-save-file-name-transforms `((".*" ,autosave-dir t))) 

I checked the backup for other files (e.g. .emacs itself), correctly created a backup for them. But he did not back up any files with a controlled version. Can someone tell me how to debug this?

+4
source share
1 answer

Try:

 (setq vc-make-backup-files t) 
+6
source

Source: https://habr.com/ru/post/1389138/


All Articles