diff options
| author | Roland McGrath | 1992-09-27 00:45:57 +0000 |
|---|---|---|
| committer | Roland McGrath | 1992-09-27 00:45:57 +0000 |
| commit | a61182970f5ffac0b9e739ea3937f1a3edf4cc32 (patch) | |
| tree | bf8e8d5c22ed59e89f603dcacf531a9f7e25a66d | |
| parent | 510aa4ddc491f684a76642e11875cc2360ad951d (diff) | |
| download | emacs-a61182970f5ffac0b9e739ea3937f1a3edf4cc32.tar.gz emacs-a61182970f5ffac0b9e739ea3937f1a3edf4cc32.zip | |
(vc-toggle-read-only): Doc fix.
(vc-mode-line): Add interactive spec.
| -rw-r--r-- | lisp/vc-hooks.el | 5 |
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 |
| 100 | logical next version-control action; otherwise, just toggle the buffer's | 100 | logical next version-control action; otherwise, just toggle the buffer's |
| 101 | read-only flag." | 101 | read-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. |
| 109 | The value is set in the current buffer, which should be the buffer | 109 | The value is set in the current buffer, which should be the buffer |
| 110 | visiting FILE." | 110 | visiting 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 |