Commit b5bcaf3e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(vc-find-file-hook): Set backup-inhibited.

parent 2cb6da5c
......@@ -246,8 +246,10 @@ visiting FILE."
(vc-file-setprop buffer-file-name 'vc-backend nil))
(if (and (vc-mode-line buffer-file-name) (not vc-make-backup-files))
(make-local-variable 'make-backup-files)
(setq make-backup-files nil))))
;; Use this variable, not make-backup-files,
;; because this is for things that depend on the file name.
(make-local-variable 'backup-inhibited)
(setq backup-inhibited t))))
(add-hook 'find-file-hooks 'vc-find-file-hook)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment