From: Richard M. Stallman Date: Sun, 27 Mar 1994 19:46:27 +0000 (+0000) Subject: (vc-find-file-hook): Set backup-inhibited. X-Git-Tag: emacs-19.34~9307 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b5bcaf3ebb7e491b63f32a41d02f4b2fc3e55cac;p=emacs.git (vc-find-file-hook): Set backup-inhibited. --- diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 64200795928..6e1878ada02 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el @@ -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)