diff options
| author | Glenn Morris | 2008-02-24 22:51:00 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-02-24 22:51:00 +0000 |
| commit | 59e9dbbc6395b3364e96049eef8ee0f96e1a8343 (patch) | |
| tree | 4cd5f92ccf92b34a68220ed92f65ffca99ad66ef | |
| parent | a8bdd228f8663936fbcd378928dacefefc49b7ad (diff) | |
| download | emacs-59e9dbbc6395b3364e96049eef8ee0f96e1a8343.tar.gz emacs-59e9dbbc6395b3364e96049eef8ee0f96e1a8343.zip | |
(vc-mcvs-register): Fix let-binding (for use of `file').
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/vc-mcvs.el | 28 |
2 files changed, 18 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e7f16811201..b7d40b19998 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-02-24 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * vc-mcvs.el (vc-mcvs-register): Fix let-binding (for use of `file'). | ||
| 4 | |||
| 1 | 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 6 | ||
| 3 | * progmodes/compile.el (compilation-start): Specify a face for | 7 | * progmodes/compile.el (compilation-start): Specify a face for |
diff --git a/lisp/vc-mcvs.el b/lisp/vc-mcvs.el index 73fe7457dfa..6be69e47bd8 100644 --- a/lisp/vc-mcvs.el +++ b/lisp/vc-mcvs.el | |||
| @@ -216,7 +216,7 @@ COMMENT can be used to provide an initial description of FILE. | |||
| 216 | the Meta-CVS command (in that order)." | 216 | the Meta-CVS command (in that order)." |
| 217 | ;; FIXME: multiple-file case should be made to work | 217 | ;; FIXME: multiple-file case should be made to work |
| 218 | (if (> (length files) 1) (error "Registering filesets is not yet supported.")) | 218 | (if (> (length files) 1) (error "Registering filesets is not yet supported.")) |
| 219 | (let* ((file (car files)) | 219 | (let* ((file (car files)) |
| 220 | (filename (file-name-nondirectory file)) | 220 | (filename (file-name-nondirectory file)) |
| 221 | (extpos (string-match "\\." filename)) | 221 | (extpos (string-match "\\." filename)) |
| 222 | (ext (if extpos (substring filename (1+ extpos)))) | 222 | (ext (if extpos (substring filename (1+ extpos)))) |
| @@ -245,19 +245,19 @@ the Meta-CVS command (in that order)." | |||
| 245 | (pp types (current-buffer)) | 245 | (pp types (current-buffer)) |
| 246 | (save-buffer) | 246 | (save-buffer) |
| 247 | (unless (get-buffer-window (current-buffer) t) | 247 | (unless (get-buffer-window (current-buffer) t) |
| 248 | (kill-buffer (current-buffer))))))) | 248 | (kill-buffer (current-buffer)))))) |
| 249 | ;; Now do the ADD. | 249 | ;; Now do the ADD. |
| 250 | (prog1 (apply 'vc-mcvs-command nil 0 file | 250 | (prog1 (apply 'vc-mcvs-command nil 0 file |
| 251 | "add" | 251 | "add" |
| 252 | (and comment (string-match "[^\t\n ]" comment) | 252 | (and comment (string-match "[^\t\n ]" comment) |
| 253 | (concat "-m" comment)) | 253 | (concat "-m" comment)) |
| 254 | (vc-switches 'MCVS 'register)) | 254 | (vc-switches 'MCVS 'register)) |
| 255 | ;; I'm not sure exactly why, but if we don't setup the inode and root | 255 | ;; I'm not sure exactly why, but if we don't setup the inode and root |
| 256 | ;; prop of the file, things break later on in vc-mode-line that | 256 | ;; prop of the file, things break later on in vc-mode-line that |
| 257 | ;; ends up calling vc-mcvs-working-revision. | 257 | ;; ends up calling vc-mcvs-working-revision. |
| 258 | ;; We also need to set vc-checkout-time so that vc-workfile-unchanged-p | 258 | ;; We also need to set vc-checkout-time so that vc-workfile-unchanged-p |
| 259 | ;; doesn't try to call `mcvs diff' on the file. | 259 | ;; doesn't try to call `mcvs diff' on the file. |
| 260 | (vc-mcvs-registered file))) | 260 | (vc-mcvs-registered file)))) |
| 261 | 261 | ||
| 262 | (defalias 'vc-mcvs-responsible-p 'vc-mcvs-root | 262 | (defalias 'vc-mcvs-responsible-p 'vc-mcvs-root |
| 263 | "Return non-nil if CVS thinks it is responsible for FILE.") | 263 | "Return non-nil if CVS thinks it is responsible for FILE.") |