changeset 4338:0e9960f5e99c

(vc-mode-line): Set vc-mode to nil if FILE no longer is version-controlled.
author Paul Eggert <eggert@twinsun.com>
date Thu, 29 Jul 1993 04:58:47 +0000
parents cda282328afd
children 2b1aa3183d79
files lisp/vc-hooks.el
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc-hooks.el	Thu Jul 29 04:50:27 1993 +0000
+++ b/lisp/vc-hooks.el	Thu Jul 29 04:58:47 1993 +0000
@@ -142,11 +142,11 @@
 visiting FILE."
   (interactive (list buffer-file-name nil))
   (let ((vc-type (vc-backend-deduce file)))
-    (if vc-type
-        (setq vc-mode
-              (concat " " (or label (symbol-name vc-type))
-		      (if (and vc-rcs-status (eq vc-type 'RCS))
-                          (vc-rcs-status file)))))
+    (setq vc-mode
+	  (and vc-type
+	       (concat " " (or label (symbol-name vc-type))
+		       (if (and vc-rcs-status (eq vc-type 'RCS))
+			   (vc-rcs-status file)))))
     ;; force update of mode line
     (set-buffer-modified-p (buffer-modified-p))
     vc-type))