changeset 7192:8a8acd6da9be

(vc-mode-line): Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Fri, 29 Apr 1994 06:25:49 +0000
parents bd2f9c5ee54e
children 03103053974d
files lisp/vc-hooks.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc-hooks.el	Fri Apr 29 06:05:19 1994 +0000
+++ b/lisp/vc-hooks.el	Fri Apr 29 06:25:49 1994 +0000
@@ -155,8 +155,8 @@
 	 (not (string-equal (user-login-name) (vc-locking-user file)))
 	 (setq buffer-read-only t))
     (and (null vc-type)
-	 (file-symlink-p buffer-file-name)
-	 (let ((link-type (vc-backend-deduce (file-symlink-p buffer-file-name))))
+	 (file-symlink-p file)
+	 (let ((link-type (vc-backend-deduce (file-symlink-p file))))
 	   (if link-type
 	       (message "Warning: symbolic link to %s-controlled source file"
 			link-type))))