Mercurial > emacs
changeset 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 | a84c4990fa36 |
children | 8eb722515c31 |
files | lisp/vc-hooks.el |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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)