From: André Spiegel Date: Mon, 20 Nov 2000 14:14:25 +0000 (+0000) Subject: (vc-rcs-state): Before calling vc-workfile-unchanged-p, require vc. X-Git-Tag: emacs-pretest-21.0.92~276 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ceaa99745a42293fa6f69fbc88e87292e9bee060;p=emacs.git (vc-rcs-state): Before calling vc-workfile-unchanged-p, require vc. --- diff --git a/lisp/vc-rcs.el b/lisp/vc-rcs.el index b636f45615c..e17d0d6da27 100644 --- a/lisp/vc-rcs.el +++ b/lisp/vc-rcs.el @@ -5,7 +5,7 @@ ;; Author: FSF (see vc.el for full credits) ;; Maintainer: Andre Spiegel -;; $Id: vc-rcs.el,v 1.12 2000/11/16 18:13:16 spiegel Exp $ +;; $Id: vc-rcs.el,v 1.13 2000/11/19 09:46:04 spiegel Exp $ ;; This file is part of GNU Emacs. @@ -123,13 +123,14 @@ For a description of possible values, see `vc-check-master-templates'." (vc-rcs-fetch-master-state file (vc-file-getprop file 'vc-workfile-version)))) - (if (eq state 'up-to-date) - (if (vc-workfile-unchanged-p file) - 'up-to-date - (if (eq (vc-checkout-model file) 'locking) - 'unlocked-changes - 'edited)) - state))) + (if (not (eq state 'up-to-date)) + state + (require 'vc) + (if (vc-workfile-unchanged-p file) + 'up-to-date + (if (eq (vc-checkout-model file) 'locking) + 'unlocked-changes + 'edited))))) (defun vc-rcs-state-heuristic (file) "State heuristic for RCS."