changeset 1951:ef257d7ca34a

(vc-find-file-hook): Discard vc status of file if we will actually have to create the buffer.
author Richard M. Stallman <rms@gnu.org>
date Wed, 24 Feb 1993 18:07:12 +0000
parents 049a892e6398
children b0ec61f76511
files lisp/vc-hooks.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc-hooks.el	Wed Feb 24 18:02:05 1993 +0000
+++ b/lisp/vc-hooks.el	Wed Feb 24 18:07:12 1993 +0000
@@ -5,7 +5,7 @@
 ;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
 ;; Version: 4.0
 
-;;	$Id: vc-hooks.el,v 1.5 1992/10/20 18:43:33 rms Exp rms $	
+;;	$Id: vc-hooks.el,v 1.6 1992/10/24 20:07:08 rms Exp rms $	
 
 ;; This file is part of GNU Emacs.
 
@@ -134,6 +134,9 @@
 
 ;;; install a call to the above as a find-file hook
 (defun vc-find-file-hook ()
+  ;; Recompute whether file is version controlled,
+  ;; if user has killed the buffer and revisited.
+  (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)