diff options
| author | André Spiegel | 1998-02-27 18:44:14 +0000 |
|---|---|---|
| committer | André Spiegel | 1998-02-27 18:44:14 +0000 |
| commit | 0d53f4669de0011ea8bce12cc8e6a15e5638e46a (patch) | |
| tree | 357b58870a02937b9b8990f2e058fef84a3e58d2 | |
| parent | be38bd1419a2e61f81746695666db8c36713ff11 (diff) | |
| download | emacs-0d53f4669de0011ea8bce12cc8e6a15e5638e46a.tar.gz emacs-0d53f4669de0011ea8bce12cc8e6a15e5638e46a.zip | |
(vc-default-init-version): New variable.
(vc-register): Use it. Also use COMMENT argument.
| -rw-r--r-- | lisp/vc.el | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 1d62b342b3c..228569ba5fb 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -5,6 +5,8 @@ | |||
| 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> |
| 7 | 7 | ||
| 8 | ;; $Id: vc.el,v 1.208.1.1 1998/02/27 18:28:44 spiegel Exp $ | ||
| 9 | |||
| 8 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 9 | 11 | ||
| 10 | ;; GNU Emacs is free software; you can redistribute it and/or modify | 12 | ;; GNU Emacs is free software; you can redistribute it and/or modify |
| @@ -110,6 +112,12 @@ If FORM3 is `RCS', use FORM2 for CVS as well as RCS. | |||
| 110 | :type 'boolean | 112 | :type 'boolean |
| 111 | :group 'vc) | 113 | :group 'vc) |
| 112 | 114 | ||
| 115 | (defcustom vc-default-init-version "1.1" | ||
| 116 | "*A string used as the default version number when a new file is registered. | ||
| 117 | This can be overriden by giving a prefix argument to \\[vc-register]." | ||
| 118 | :type 'string | ||
| 119 | :group 'vc) | ||
| 120 | |||
| 113 | (defcustom vc-command-messages nil | 121 | (defcustom vc-command-messages nil |
| 114 | "*If non-nil, display run messages from back-end commands." | 122 | "*If non-nil, display run messages from back-end commands." |
| 115 | :type 'boolean | 123 | :type 'boolean |
| @@ -971,9 +979,11 @@ merge in the changes into your working copy." | |||
| 971 | (setq backup-inhibited t))) | 979 | (setq backup-inhibited t))) |
| 972 | (vc-admin | 980 | (vc-admin |
| 973 | buffer-file-name | 981 | buffer-file-name |
| 974 | (and override | 982 | (or (and override |
| 975 | (read-string | 983 | (read-string |
| 976 | (format "Initial version level for %s: " buffer-file-name)))) | 984 | (format "Initial version level for %s: " buffer-file-name))) |
| 985 | vc-default-init-version) | ||
| 986 | comment) | ||
| 977 | (setq vc-buffer-backend (vc-backend (buffer-file-name))) | 987 | (setq vc-buffer-backend (vc-backend (buffer-file-name))) |
| 978 | ) | 988 | ) |
| 979 | 989 | ||