From: Glenn Morris Date: Thu, 4 Dec 2008 07:01:56 +0000 (+0000) Subject: (vc-rcs-register-switches): Doc fix. Add t as option. X-Git-Tag: emacs-pretest-23.0.90~1286 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e55ee73561ea91682510bca3f0062e6c1976375;p=emacs.git (vc-rcs-register-switches): Doc fix. Add t as option. (vc-rcs-register): Doc fix. --- diff --git a/lisp/vc-rcs.el b/lisp/vc-rcs.el index 0d9329fe506..cb631ab2539 100644 --- a/lisp/vc-rcs.el +++ b/lisp/vc-rcs.el @@ -45,14 +45,14 @@ If nil, VC itself computes this value when it is first needed." :group 'vc) (defcustom vc-rcs-register-switches nil - "Extra switches for registering a file in RCS. -A string or list of strings. These are passed to the checkin program -by \\[vc-rcs-register]." - :type '(choice (const :tag "None" nil) + "Switches for registering a file in RCS. +A string or list of strings passed to the checkin program by +\\[vc-register]. If nil, use the value of `vc-register-switches'. +If t, use no switches." + :type '(choice (const :tag "Unspecified" nil) + (const :tag "None" t) (string :tag "Argument String") - (repeat :tag "Argument List" - :value ("") - string)) + (repeat :tag "Argument List" :value ("") string)) :version "21.1" :group 'vc) @@ -262,17 +262,15 @@ When VERSION is given, perform check for that version." (defun vc-rcs-create-repo () "Create a new RCS repository." - ;; RCS is totally file-oriented, so all we have to do is make the directory + ;; RCS is totally file-oriented, so all we have to do is make the directory. (make-directory "RCS")) -;; FIXME doc is wrong re switches. (defun vc-rcs-register (files &optional rev comment) "Register FILES into the RCS version-control system. REV is the optional revision number for the files. COMMENT can be used to provide an initial description for each FILES. - -`vc-register-switches' and `vc-rcs-register-switches' are passed to -the RCS command (in that order). +Passes either `vc-rcs-register-switches' or `vc-register-switches' +to the RCS command. Automatically retrieve a read-only version of the file with keywords expanded if `vc-keep-workfiles' is non-nil, otherwise, delete the workfile."