1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

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

This commit is contained in:
Richard M. Stallman 1994-03-27 19:46:27 +00:00
parent 2cb6da5c78
commit b5bcaf3ebb

View file

@ -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))
(progn
(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)