]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-mode-line): Fix previous change.
authorRichard M. Stallman <rms@gnu.org>
Fri, 29 Apr 1994 06:25:49 +0000 (06:25 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 29 Apr 1994 06:25:49 +0000 (06:25 +0000)
lisp/vc-hooks.el

index 48e3ea6424d1566e783c77ff64a75c35169a9522..0704cdb6aaf800cbc8366b95fad167fad4a86625 100644 (file)
@@ -155,8 +155,8 @@ visiting FILE."
         (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))))