]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-find-file-hook): Set backup-inhibited.
authorRichard M. Stallman <rms@gnu.org>
Sun, 27 Mar 1994 19:46:27 +0000 (19:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 27 Mar 1994 19:46:27 +0000 (19:46 +0000)
lisp/vc-hooks.el

index 64200795928f0a501c0735da82e99985f6c52713..6e1878ada0238b0b395d17aa26574c3e1129b059 100644 (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)