summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-26 18:01:42 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-26 18:01:42 +0000
commitbb8684a89f1253a15b9a29f21298dc6f68f568e5 (patch)
treeb69cbc4ab1f1d68e6f33c9964819bb7c4fc2039d /lisp
parentb135b06632334aea4eeed79e0570a452167e7c97 (diff)
downloademacs-bb8684a89f1253a15b9a29f21298dc6f68f568e5.tar.gz
Comment changes.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/vc-hooks.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 86e53116583..8a4184a6bad 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -880,15 +880,16 @@ control system name."
(and vc-display-status (vc-status file)))))
;; If the file is locked by some other user, make
;; the buffer read-only. Like this, even root
- ;; cannot modify a file without locking it first.
+ ;; cannot modify a file that someone else has locked.
(and vc-type
(equal file (buffer-file-name))
(vc-locking-user file)
(not (string= (user-login-name) (vc-locking-user file)))
(setq buffer-read-only t))
- ;; If the user is root, and the file is not owner-readable,
- ;; then pretend that we can't read it
- ;; even though we can (because root can read anything).
+ ;; If the user is root, and the file is not owner-writable,
+ ;; then pretend that we can't write it
+ ;; even though we can (because root can write anything).
+ ;; This way, even root cannot modify a file that isn't locked.
(and vc-type
(equal file (buffer-file-name))
(not buffer-read-only)