aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-05 20:56:20 +0000
committerRichard M. Stallman1997-05-05 20:56:20 +0000
commit0101cc4045ad6737784e748a706f10128b54db53 (patch)
treecec87f0a857c98ea345d019912988ecb79450f63
parenta416bfa85ba6111eec3e8775c586ba68113c592e (diff)
downloademacs-0101cc4045ad6737784e748a706f10128b54db53.tar.gz
emacs-0101cc4045ad6737784e748a706f10128b54db53.zip
Use defgroup and defcustom.
Doc fixes.
-rw-r--r--lisp/vc.el146
1 files changed, 107 insertions, 39 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 8c8aa44aaf8..5762cf4e605 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -1,6 +1,6 @@
1;;; vc.el --- drive a version-control system from within Emacs 1;;; vc.el --- drive a version-control system from within Emacs
2 2
3;; Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 3;; Copyright (C) 1992, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
4 4
5;; Author: Eric S. Raymond <esr@snark.thyrsus.com> 5;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
6;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de> 6;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de>
@@ -96,81 +96,149 @@ If FORM3 is `RCS', use FORM2 for CVS as well as RCS.
96 96
97;; General customization 97;; General customization
98 98
99(defvar vc-suppress-confirm nil 99(defgroup vc nil
100 "*If non-nil, treat user as expert; suppress yes-no prompts on some things.") 100 "Version-control system in Emacs."
101(defvar vc-initial-comment nil 101 :group 'tools)
102 "*If non-nil, prompt for initial comment when a file is registered.") 102
103(defvar vc-command-messages nil 103(defcustom vc-suppress-confirm nil
104 "*If non-nil, display run messages from back-end commands.") 104 "*If non-nil, treat user as expert; suppress yes-no prompts on some things."
105(defvar vc-register-switches nil 105 :type 'boolean
106 "*A string or list of strings specifying extra switches passed 106 :group 'vc)
107to the register program by \\[vc-register].") 107
108(defvar vc-checkin-switches nil 108(defcustom vc-initial-comment nil
109 "*A string or list of strings specifying extra switches passed 109 "*If non-nil, prompt for initial comment when a file is registered."
110to the checkin program by \\[vc-checkin].") 110 :type 'boolean
111(defvar vc-checkout-switches nil 111 :group 'vc)
112 "*A string or list of strings specifying extra switches passed 112
113to the checkout program by \\[vc-checkout].") 113(defcustom vc-command-messages nil
114(defvar vc-directory-exclusion-list '("SCCS" "RCS" "CVS") 114 "*If non-nil, display run messages from back-end commands."
115 "*A list of directory names ignored by functions that recursively 115 :type 'boolean
116walk file trees.") 116 :group 'vc)
117
118(defcustom vc-checkin-switches nil
119 "*A string or list of strings specifying extra switches for checkin.
120These are passed to the checkin program by \\[vc-checkin]."
121 :type '(choice (const :tag "None" nil)
122 (string :tag "Argument String")
123 (repeat :tag "Argument List"
124 :value ("")
125 string))
126 :group 'vc)
127
128(defcustom vc-checkout-switches nil
129 "*A string or list of strings specifying extra switches for checkout.
130These are passed to the checkout program by \\[vc-checkout]."
131 :type '(choice (const :tag "None" nil)
132 (string :tag "Argument String")
133 (repeat :tag "Argument List"
134 :value ("")
135 string))
136 :group 'vc)
137
138(defcustom vc-register-switches nil
139 "*A string or list of strings; extra switches for registering a file.
140These are passed to the checkin program by \\[vc-register]."
141 :type '(choice (const :tag "None" nil)
142 (string :tag "Argument String")
143 (repeat :tag "Argument List"
144 :value ("")
145 string))
146 :group 'vc)
147
148(defcustom vc-directory-exclusion-list '("SCCS" "RCS" "CVS")
149 "*List of directory names to be ignored while recursively walking file trees."
150 :type '(repeat string)
151 :group 'vc)
117 152
118(defconst vc-maximum-comment-ring-size 32 153(defconst vc-maximum-comment-ring-size 32
119 "Maximum number of saved comments in the comment ring.") 154 "Maximum number of saved comments in the comment ring.")
120 155
121;;; This is duplicated in diff.el. 156;;; This is duplicated in diff.el.
157;;; ...and customized.
122(defvar diff-switches "-c" 158(defvar diff-switches "-c"
123 "*A string or list of strings specifying switches to be be passed to diff.") 159 "*A string or list of strings specifying switches to be be passed to diff.")
124 160
125;;;###autoload 161;;;###autoload
126(defvar vc-before-checkin-hook nil 162(defcustom vc-checkin-hook nil
127 "*Normal hook (list of functions) run before a file gets checked in. 163 "*Normal hook (List of functions) run after a checkin is done.
128See `run-hooks'.") 164See `run-hooks'."
165 :type 'hook
166 :group 'vc)
129 167
130;;;###autoload 168;;;###autoload
131(defvar vc-checkin-hook nil 169(defcustom vc-before-checkin-hook nil
132 "*Normal hook (List of functions) run after a checkin is done. 170 "*Normal hook (list of functions) run before a file gets checked in.
133See `run-hooks'.") 171See `run-hooks'."
172 :type 'hook
173 :group 'vc)
134 174
135;; Header-insertion hair 175;; Header-insertion hair
136 176
137(defvar vc-header-alist 177(defcustom vc-header-alist
138 '((SCCS "\%W\%") (RCS "\$Id\$") (CVS "\$Id\$")) 178 '((SCCS "\%W\%") (RCS "\$Id\$") (CVS "\$Id\$"))
139 "*Header keywords to be inserted by `vc-insert-headers'. 179 "*Header keywords to be inserted by `vc-insert-headers'.
140Must be a list of two-element lists, the first element of each must 180Must be a list of two-element lists, the first element of each must
141be `RCS', `CVS', or `SCCS'. The second element is the string to 181be `RCS', `CVS', or `SCCS'. The second element is the string to
142be inserted for this particular backend.") 182be inserted for this particular backend."
143(defvar vc-static-header-alist 183 :type '(repeat (list :format "%v"
184 (choice :tag "System"
185 (const SCCS)
186 (const RCS)
187 (const CVS))
188 (string :tag "Header")))
189 :group 'vc)
190
191(defcustom vc-static-header-alist
144 '(("\\.c$" . 192 '(("\\.c$" .
145 "\n#ifndef lint\nstatic char vcid[] = \"\%s\";\n#endif /* lint */\n")) 193 "\n#ifndef lint\nstatic char vcid[] = \"\%s\";\n#endif /* lint */\n"))
146 "*Associate static header string templates with file types. A \%s in the 194 "*Associate static header string templates with file types. A \%s in the
147template is replaced with the first string associated with the file's 195template is replaced with the first string associated with the file's
148version-control type in `vc-header-alist'.") 196version-control type in `vc-header-alist'."
197 :type '(repeat (cons :format "%v"
198 (regexp :tag "File Type")
199 (string :tag "Header String")))
200 :group 'vc)
149 201
150(defvar vc-comment-alist 202(defcustom vc-comment-alist
151 '((nroff-mode ".\\\"" "")) 203 '((nroff-mode ".\\\"" ""))
152 "*Special comment delimiters to be used in generating vc headers only. 204 "*Special comment delimiters to be used in generating vc headers only.
153Add an entry in this list if you need to override the normal comment-start 205Add an entry in this list if you need to override the normal comment-start
154and comment-end variables. This will only be necessary if the mode language 206and comment-end variables. This will only be necessary if the mode language
155is sensitive to blank lines.") 207is sensitive to blank lines."
208 :type '(repeat (list :format "%v"
209 (symbol :tag "Mode")
210 (string :tag "Comment Start")
211 (string :tag "Comment End")))
212 :group 'vc)
156 213
157;; Default is to be extra careful for super-user. 214;; Default is to be extra careful for super-user.
158(defvar vc-checkout-carefully (= (user-uid) 0) 215(defcustom vc-checkout-carefully (= (user-uid) 0)
159 "*Non-nil means be extra-careful in checkout. 216 "*Non-nil means be extra-careful in checkout.
160Verify that the file really is not locked 217Verify that the file really is not locked
161and that its contents match what the master file says.") 218and that its contents match what the master file says."
219 :type 'boolean
220 :group 'vc)
162 221
163(defvar vc-rcs-release nil 222(defcustom vc-rcs-release nil
164 "*The release number of your RCS installation, as a string. 223 "*The release number of your RCS installation, as a string.
165If nil, VC itself computes this value when it is first needed.") 224If nil, VC itself computes this value when it is first needed."
225 :type '(choice (const :tag "Auto" nil)
226 string)
227 :group 'vc)
166 228
167(defvar vc-sccs-release nil 229(defcustom vc-sccs-release nil
168 "*The release number of your SCCS installation, as a string. 230 "*The release number of your SCCS installation, as a string.
169If nil, VC itself computes this value when it is first needed.") 231If nil, VC itself computes this value when it is first needed."
232 :type '(choice (const :tag "Auto" nil)
233 string)
234 :group 'vc)
170 235
171(defvar vc-cvs-release nil 236(defcustom vc-cvs-release nil
172 "*The release number of your CVS installation, as a string. 237 "*The release number of your CVS installation, as a string.
173If nil, VC itself computes this value when it is first needed.") 238If nil, VC itself computes this value when it is first needed."
239 :type '(choice (const :tag "Auto" nil)
240 string)
241 :group 'vc)
174 242
175;; Variables the user doesn't need to know about. 243;; Variables the user doesn't need to know about.
176(defvar vc-log-entry-mode nil) 244(defvar vc-log-entry-mode nil)