# HG changeset patch # User Richard M. Stallman # Date 764797587 0 # Node ID 3715d5bfad50af6fba2df76793cdb1dbb67b6d64 # Parent a84c4990fa36c4d14f9f53b66f1bcfbf1464fbcc (vc-find-file-hook): Set backup-inhibited. diff -r a84c4990fa36 -r 3715d5bfad50 lisp/vc-hooks.el --- a/lisp/vc-hooks.el Sun Mar 27 07:55:46 1994 +0000 +++ b/lisp/vc-hooks.el Sun Mar 27 19:46:27 1994 +0000 @@ -246,8 +246,10 @@ (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)