]> git.eshelyaron.com Git - emacs.git/commitdiff
(viper-file-checked-in-p): Call vc-state instead of vc-locking-user,
authorAndré Spiegel <spiegel@gnu.org>
Wed, 22 Nov 2000 12:55:31 +0000 (12:55 +0000)
committerAndré Spiegel <spiegel@gnu.org>
Wed, 22 Nov 2000 12:55:31 +0000 (12:55 +0000)
which no longer exists.

lisp/emulation/viper-util.el

index 393dc4d527650e3abac9ab879a595ac40347e217..a36478f06524cde447e304b7d8684bfc6f8b4807 100644 (file)
   (and (featurep 'vc-hooks)
        ;; CVS files are considered not checked in
        (not (memq (vc-backend file) '(nil CVS)))
-       (not (vc-locking-user file))))
+       (not (memq (vc-state file) '(edited needs-merge)))
+       (not (stringp (vc-state file)))))
 
 ;; checkout if visited file is checked in
 (defun viper-maybe-checkout (buf)