From 64341022ab59a4a65c1f0a9512ab309a255c2046 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Spiegel?= Date: Thu, 21 Sep 2000 13:15:26 +0000 Subject: [PATCH] (vc-name): Force correct computation of the value in case it is missing. --- lisp/vc-hooks.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 624d5f61a89..64b511b56d4 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el @@ -5,7 +5,7 @@ ;; Author: FSF (see vc.el for full credits) ;; Maintainer: Andre Spiegel -;; $Id: vc-hooks.el,v 1.118 2000/09/06 10:41:10 gerd Exp $ +;; $Id: vc-hooks.el,v 1.119 2000/09/12 13:00:30 fx Exp $ ;; This file is part of GNU Emacs. @@ -289,7 +289,10 @@ If the file is not registered, or the master name is not known, return nil." ;; TODO: This should ultimately become obsolete, at least up here ;; in vc-hooks. (or (vc-file-getprop file 'vc-name) - (if (vc-backend file) + ;; force computation of the property by calling + ;; vc-BACKEND-registered explicitly + (if (and (vc-backend file) + (vc-call-backend (vc-backend file) 'registered file)) (vc-file-getprop file 'vc-name)))) (defun vc-checkout-model (file) -- 2.39.2