diff lisp/vc-sccs.el @ 103937:b0f266cccf0b

* vc-rcs.el (vc-rcs-find-file-hook): * vc-sccs.el (vc-sccs-find-file-hook): Fix cut and paste error.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 16 Jul 2009 20:52:53 +0000
parents af4ee0cb7fb7
children f4a041a8c69d
line wrap: on
line diff
--- a/lisp/vc-sccs.el	Thu Jul 16 19:37:08 2009 +0000
+++ b/lisp/vc-sccs.el	Thu Jul 16 20:52:53 2009 +0000
@@ -395,8 +395,8 @@
   ;; If the file is locked by some other user, make
   ;; the buffer read-only.  Like this, even root
   ;; cannot modify a file that someone else has locked.
-  (stringp (vc-state buffer-file-name 'SCCS))
-  (setq buffer-read-only t))
+  (and (stringp (vc-state buffer-file-name 'SCCS))
+       (setq buffer-read-only t)))
 
 
 ;;;