aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1992-09-27 00:45:57 +0000
committerRoland McGrath1992-09-27 00:45:57 +0000
commita61182970f5ffac0b9e739ea3937f1a3edf4cc32 (patch)
treebf8e8d5c22ed59e89f603dcacf531a9f7e25a66d
parent510aa4ddc491f684a76642e11875cc2360ad951d (diff)
downloademacs-a61182970f5ffac0b9e739ea3937f1a3edf4cc32.tar.gz
emacs-a61182970f5ffac0b9e739ea3937f1a3edf4cc32.zip
(vc-toggle-read-only): Doc fix.
(vc-mode-line): Add interactive spec.
-rw-r--r--lisp/vc-hooks.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index d8a8917291e..a0795902624 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -5,7 +5,7 @@
5;; Author: Eric S. Raymond <esr@snark.thyrsus.com> 5;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
6;; Version: 4.0 6;; Version: 4.0
7 7
8;; $Id: vc-hooks.el,v 1.44 1992/07/31 06:43:05 esr Exp $ 8;; $Id: vc-hooks.el,v 1.2 1992/08/04 07:21:29 jimb Exp roland $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -96,7 +96,7 @@ the make-backup-files variable. Otherwise, prevents backups being made.")
96 (vc-file-setprop file 'vc-backend (cdr (vc-registered file)))))) 96 (vc-file-setprop file 'vc-backend (cdr (vc-registered file))))))
97 97
98(defun vc-toggle-read-only () 98(defun vc-toggle-read-only ()
99 "If the file in the current buffer id under version control, perform the 99 "If the file in the current buffer is under version control, perform the
100logical next version-control action; otherwise, just toggle the buffer's 100logical next version-control action; otherwise, just toggle the buffer's
101read-only flag." 101read-only flag."
102 (interactive) 102 (interactive)
@@ -108,6 +108,7 @@ read-only flag."
108 "Set `vc-mode-string' to display type of version control for FILE. 108 "Set `vc-mode-string' to display type of version control for FILE.
109The value is set in the current buffer, which should be the buffer 109The value is set in the current buffer, which should be the buffer
110visiting FILE." 110visiting FILE."
111 (interactive (list buffer-file-name nil))
111 (let ((vc-type (vc-backend-deduce file))) 112 (let ((vc-type (vc-backend-deduce file)))
112 (if vc-type 113 (if vc-type
113 (progn 114 (progn