# HG changeset patch # User Glenn Morris # Date 1192158073 0 # Node ID 025303f3b74d425ff07a2f4431ab321cd5debd47 # Parent d18b96e2d51fda077b73ad41f299d73184099452 (vc-mcvs-checkin): Use mapc rather than mapcar. diff -r d18b96e2d51f -r 025303f3b74d lisp/vc-mcvs.el --- a/lisp/vc-mcvs.el Fri Oct 12 03:00:05 2007 +0000 +++ b/lisp/vc-mcvs.el Fri Oct 12 03:01:13 2007 +0000 @@ -277,8 +277,8 @@ ;; be applied just to this one file. (apply 'vc-mcvs-command nil 0 files "tag" "-b" (list rev)) (apply 'vc-mcvs-command nil 0 files "update" "-r" (list rev)) - (mapcar (lambda (file) (vc-file-setprop file 'vc-mcvs-sticky-tag rev)) - files) + (mapc (lambda (file) (vc-file-setprop file 'vc-mcvs-sticky-tag rev)) + files) (setq rev nil))) ;; This commit might cvs-commit several files (e.g. MAP and TYPES) ;; so using numbered revs here is dangerous and somewhat meaningless. @@ -292,7 +292,7 @@ ;; Check checkin problem. (cond ((re-search-forward "Up-to-date check failed" nil t) - (mapcar (lambda (file) (vc-file-setprop file 'vc-state 'needs-merge)) + (mapc (lambda (file) (vc-file-setprop file 'vc-state 'needs-merge)) files) (error (substitute-command-keys (concat "Up-to-date check failed: "