Mercurial > emacs
diff lisp/vc-hooks.el @ 6545:3715d5bfad50
(vc-find-file-hook): Set backup-inhibited.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 27 Mar 1994 19:46:27 +0000 |
parents | 6a97e54241a3 |
children | cdf928b318d7 |
line wrap: on
line diff
--- 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)