aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2001-01-25 16:36:48 +0000
committerSam Steingold2001-01-25 16:36:48 +0000
commit9b0630e57ef02f4919c2edfaa1b1910442d088ea (patch)
tree87ddcd4fe5c2b8ea33383b239eb19baa2785749d
parent3be7e41764a5546eb5800edf6bf3c5ee5c3fd125 (diff)
downloademacs-9b0630e57ef02f4919c2edfaa1b1910442d088ea.tar.gz
emacs-9b0630e57ef02f4919c2edfaa1b1910442d088ea.zip
doc&comment fix
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/vc-cvs.el40
2 files changed, 27 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1f699da7ade..65220e45a21 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12001-01-25 Sam Steingold <sds@gnu.org>
2
3 * vc-cvs.el (vc-cvs-mode-line-string): Doc & comment fix.
4
12001-01-25 Stefan Monnier <monnier@cs.yale.edu> 52001-01-25 Stefan Monnier <monnier@cs.yale.edu>
2 6
3 * smerge-mode.el (smerge-font-lock-keywords): Relax submatch 1. 7 * smerge-mode.el (smerge-font-lock-keywords): Relax submatch 1.
@@ -20,7 +24,7 @@
20 * international/mule-conf.el (coding-category-utf-8): Initialize 24 * international/mule-conf.el (coding-category-utf-8): Initialize
21 to mule-utf-8. 25 to mule-utf-8.
22 26
23 * loadup.el: Preload international/utf-8. 27 * loadup.el: Preload international/utf-8.
24 28
25 * international/utf-8.el: New file. 29 * international/utf-8.el: New file.
26 30
@@ -33,8 +37,10 @@
33 * dired.el (dired-replace-in-string): Removed. 37 * dired.el (dired-replace-in-string): Removed.
34 (dired-sort-toggle): Use `replace-regexps-in-string' 38 (dired-sort-toggle): Use `replace-regexps-in-string'
35 instead of `dired-replace-in-string'. 39 instead of `dired-replace-in-string'.
40
36 * dired-aux.el (dired-shell-stuff-it, dired-rename-subdir, 41 * dired-aux.el (dired-shell-stuff-it, dired-rename-subdir,
37 dired-rename-subdir-2, dired-insert-subdir-doinsert): Ditto. 42 dired-rename-subdir-2, dired-insert-subdir-doinsert): Ditto.
43
38 * gs.el (gs-replace-in-string): Removed. 44 * gs.el (gs-replace-in-string): Removed.
39 (gs-options): Use `replace-regexps-in-string' 45 (gs-options): Use `replace-regexps-in-string'
40 instead of `gs-replace-in-string'. 46 instead of `gs-replace-in-string'.
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index 73ee217f708..203dc667f48 100644
--- a/lisp/vc-cvs.el
+++ b/lisp/vc-cvs.el
@@ -5,7 +5,7 @@
5;; Author: FSF (see vc.el for full credits) 5;; Author: FSF (see vc.el for full credits)
6;; Maintainer: Andre Spiegel <spiegel@gnu.org> 6;; Maintainer: Andre Spiegel <spiegel@gnu.org>
7 7
8;; $Id: vc-cvs.el,v 1.14 2001/01/08 16:24:56 spiegel Exp $ 8;; $Id: vc-cvs.el,v 1.15 2001/01/09 14:48:25 fx Exp $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -28,7 +28,7 @@
28 28
29;;; Code: 29;;; Code:
30 30
31;;; 31;;;
32;;; Customization options 32;;; Customization options
33;;; 33;;;
34 34
@@ -71,7 +71,7 @@ then VC only stays local for hosts that match it."
71 :version "21.1" 71 :version "21.1"
72 :group 'vc) 72 :group 'vc)
73 73
74 74
75;;; 75;;;
76;;; Internal variables 76;;; Internal variables
77;;; 77;;;
@@ -82,9 +82,9 @@ then VC only stays local for hosts that match it."
82 ("Sep" . 9) ("Oct" . 10) ("Nov" . 11) ("Dec" . 12)) 82 ("Sep" . 9) ("Oct" . 10) ("Nov" . 11) ("Dec" . 12))
83 "Local association list of month numbers.") 83 "Local association list of month numbers.")
84 84
85 85
86;;; 86;;;
87;;; State-querying functions 87;;; State-querying functions
88;;; 88;;;
89 89
90;;;###autoload (defun vc-cvs-registered (f) 90;;;###autoload (defun vc-cvs-registered (f)
@@ -176,11 +176,11 @@ then VC only stays local for hosts that match it."
176(defun vc-cvs-mode-line-string (file) 176(defun vc-cvs-mode-line-string (file)
177 "Return string for placement into the modeline for FILE. 177 "Return string for placement into the modeline for FILE.
178Compared to the default implementation, this function handles the 178Compared to the default implementation, this function handles the
179special case of a CVS file that is added but not yet comitted." 179special case of a CVS file that is added but not yet committed."
180 (let ((state (vc-state file)) 180 (let ((state (vc-state file))
181 (rev (vc-workfile-version file))) 181 (rev (vc-workfile-version file)))
182 (cond ((string= rev "0") 182 (cond ((string= rev "0")
183 ;; A file that is added but not yet comitted. 183 ;; A file that is added but not yet committed.
184 "CVS @@") 184 "CVS @@")
185 ((or (eq state 'up-to-date) 185 ((or (eq state 'up-to-date)
186 (eq state 'needs-patch)) 186 (eq state 'needs-patch))
@@ -205,7 +205,7 @@ special case of a CVS file that is added but not yet comitted."
205 ))) 205 )))
206 (if state (concat "(" state ")")))) 206 (if state (concat "(" state ")"))))
207 207
208 208
209;;; 209;;;
210;;; State-changing functions 210;;; State-changing functions
211;;; 211;;;
@@ -223,7 +223,7 @@ the CVS command (in that order)."
223 (if (stringp vc-cvs-register-switches) 223 (if (stringp vc-cvs-register-switches)
224 (list vc-cvs-register-switches) 224 (list vc-cvs-register-switches)
225 vc-cvs-register-switches)))) 225 vc-cvs-register-switches))))
226 226
227 (apply 'vc-do-command nil 0 "cvs" file 227 (apply 'vc-do-command nil 0 "cvs" file
228 "add" 228 "add"
229 (and comment (string-match "[^\t\n ]" comment) 229 (and comment (string-match "[^\t\n ]" comment)
@@ -308,11 +308,11 @@ REV is the revision to check out into WORKFILE."
308 ;; the file in the right place. 308 ;; the file in the right place.
309 (setq default-directory (file-name-directory filename)) 309 (setq default-directory (file-name-directory filename))
310 (if workfile 310 (if workfile
311 (let ((failed t) 311 (let ((failed t)
312 (backup-name (if (string= file workfile) 312 (backup-name (if (string= file workfile)
313 (car (find-backup-file-name filename))))) 313 (car (find-backup-file-name filename)))))
314 (when backup-name 314 (when backup-name
315 (copy-file filename backup-name 315 (copy-file filename backup-name
316 'ok-if-already-exists 'keep-date) 316 'ok-if-already-exists 'keep-date)
317 (unless (file-writable-p filename) 317 (unless (file-writable-p filename)
318 (set-file-modes filename 318 (set-file-modes filename
@@ -331,9 +331,9 @@ REV is the revision to check out into WORKFILE."
331 "-p" 331 "-p"
332 switches))) 332 switches)))
333 (setq failed nil)) 333 (setq failed nil))
334 (if failed 334 (if failed
335 (if backup-name 335 (if backup-name
336 (rename-file backup-name filename 336 (rename-file backup-name filename
337 'ok-if-already-exists) 337 'ok-if-already-exists)
338 (if (file-exists-p filename) 338 (if (file-exists-p filename)
339 (delete-file filename))) 339 (delete-file filename)))
@@ -441,7 +441,7 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
441 (error "Couldn't analyze cvs update result"))) 441 (error "Couldn't analyze cvs update result")))
442 (message "Merging changes into %s...done" file)))) 442 (message "Merging changes into %s...done" file))))
443 443
444 444
445;;; 445;;;
446;;; History functions 446;;; History functions
447;;; 447;;;
@@ -504,8 +504,8 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
504 (and oldvers (concat "-r" oldvers)) 504 (and oldvers (concat "-r" oldvers))
505 (and newvers (concat "-r" newvers)) 505 (and newvers (concat "-r" newvers))
506 diff-switches-list)) 506 diff-switches-list))
507 (if (vc-cvs-stay-local-p file) 507 (if (vc-cvs-stay-local-p file)
508 1 ;; async diff, pessimistic assumption 508 1 ;; async diff, pessimistic assumption
509 status)))) 509 status))))
510 510
511(defun vc-cvs-annotate-command (file buffer &optional version) 511(defun vc-cvs-annotate-command (file buffer &optional version)
@@ -541,7 +541,7 @@ Return values are as defined for `current-time'."
541 (beginning-of-line nil) 541 (beginning-of-line nil)
542 (vc-cvs-annotate-difference (point)))))) 542 (vc-cvs-annotate-difference (point))))))
543 543
544 544
545;;; 545;;;
546;;; Snapshot system 546;;; Snapshot system
547;;; 547;;;
@@ -586,7 +586,7 @@ If UPDATE is non-nil, then update (resynch) any affected buffers."
586 (vc-resynch-buffer file t t)))) 586 (vc-resynch-buffer file t t))))
587 (forward-line 1)))))) 587 (forward-line 1))))))
588 588
589 589
590;;; 590;;;
591;;; Miscellaneous 591;;; Miscellaneous
592;;; 592;;;
@@ -602,7 +602,7 @@ If UPDATE is non-nil, then update (resynch) any affected buffers."
602 (re-search-forward "\\$[A-Za-z\300-\326\330-\366\370-\377]+\ 602 (re-search-forward "\\$[A-Za-z\300-\326\330-\366\370-\377]+\
603\\(: [\t -#%-\176\240-\377]*\\)?\\$" nil t))) 603\\(: [\t -#%-\176\240-\377]*\\)?\\$" nil t)))
604 604
605 605
606;;; 606;;;
607;;; Internal functions 607;;; Internal functions
608;;; 608;;;
@@ -731,7 +731,7 @@ is non-nil."
731 (vc-file-setprop file 'vc-workfile-version (match-string 1)) 731 (vc-file-setprop file 'vc-workfile-version (match-string 1))
732 (vc-file-setprop file 'vc-checkout-time 0) 732 (vc-file-setprop file 'vc-checkout-time 0)
733 (if set-state (vc-file-setprop file 'vc-state 'edited))))) 733 (if set-state (vc-file-setprop file 'vc-state 'edited)))))
734 734
735(provide 'vc-cvs) 735(provide 'vc-cvs)
736 736
737;;; vc-cvs.el ends here 737;;; vc-cvs.el ends here