summaryrefslogtreecommitdiff
path: root/lisp/vc-hooks.el
diff options
context:
space:
mode:
authorAndré Spiegel <spiegel@gnu.org>2002-07-16 17:42:57 +0000
committerAndré Spiegel <spiegel@gnu.org>2002-07-16 17:42:57 +0000
commitdb8afaee0d93d86f4eac07d59e652346c1f4ff5a (patch)
tree6d8b7b3d66077026e460fd1e0757ca730ea0f1e6 /lisp/vc-hooks.el
parent1b049b519e672eb9abda1c0c609fc0b988c0aca7 (diff)
downloademacs-db8afaee0d93d86f4eac07d59e652346c1f4ff5a.tar.gz
Don't bind vc-toggle-read-only to C-x C-q.
(vc-toggle-read-only): Explain in the doc string that users can bind this to C-x C-q. (vc-checkout-model): Change doc string to refer to vc-next-action, not vc-toggle-read-only.
Diffstat (limited to 'lisp/vc-hooks.el')
-rw-r--r--lisp/vc-hooks.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 24c16e4b0d8..ceb6a325eec 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -5,7 +5,7 @@
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
-;; $Id: vc-hooks.el,v 1.138 2002/02/21 20:56:58 spiegel Exp $
+;; $Id: vc-hooks.el,v 1.139 2002/02/28 13:09:36 spiegel Exp $
;; This file is part of GNU Emacs.
@@ -311,11 +311,11 @@ For registered files, the possible values are:
when the user saves the first changes to the file.
'locking FILE is read-only if up-to-date; user must type
- \\[vc-toggle-read-only] before editing. Strict locking
+ \\[vc-next-action] before editing. Strict locking
is assumed.
'announce FILE is read-only if up-to-date; user must type
- \\[vc-toggle-read-only] before editing. But other users
+ \\[vc-next-action] before editing. But other users
may be editing at the same time."
(or (vc-file-getprop file 'vc-checkout-model)
(if (vc-backend file)
@@ -453,19 +453,22 @@ this function."
(defun vc-toggle-read-only (&optional verbose)
"Change read-only status of current buffer, perhaps via version control.
+
If the buffer is visiting a file registered with version control,
then check the file in or out. Otherwise, just change the read-only flag
of the buffer.
With prefix argument, ask for version number to check in or check out.
Check-out of a specified version number does not lock the file;
-to do that, use this command a second time with no argument."
+to do that, use this command a second time with no argument.
+
+If you bind this function to \\[toggle-read-only], then Emacs checks files
+in or out whenever you toggle the read-only flag."
(interactive "P")
(if (or (and (boundp 'vc-dired-mode) vc-dired-mode)
;; use boundp because vc.el might not be loaded
(vc-backend (buffer-file-name)))
(vc-next-action verbose)
(toggle-read-only)))
-(define-key global-map "\C-x\C-q" 'vc-toggle-read-only)
(defun vc-default-make-version-backups-p (backend file)
"Return non-nil if unmodified versions should be backed up locally.