(vc-delete-automatic-version-backups): Likewise.
* vc.el (vc-dired-buffers-for-dir): Likewise.
+2007-08-26 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * vc-hooks.el (vc-registered): Use mapc instead of mapcar.
+ (vc-delete-automatic-version-backups): Likewise.
+
+ * vc.el (vc-dired-buffers-for-dir): Likewise.
+
2007-08-25 Dan Nicolaescu <dann@ics.uci.edu>
* progmodes/cperl-mode.el (cperl-indent-level): Autoload the
;; Try vc-BACKEND-registered for each handled BACKEND.
(catch 'found
(let ((backend (vc-file-getprop file 'vc-backend)))
- (mapcar
+ (mapc
(lambda (b)
(and (vc-call-backend b 'registered file)
(vc-file-setprop file 'vc-backend b)
(defun vc-delete-automatic-version-backups (file)
"Delete all existing automatic version backups for FILE."
(condition-case nil
- (mapcar
+ (mapc
'delete-file
(directory-files (or (file-name-directory file) default-directory) t
(vc-version-backup-file-name file nil nil t)))
(let (result)
;; Check whether dired is loaded.
(when (fboundp 'dired-buffers-for-dir)
- (mapcar (lambda (buffer)
+ (mapc (lambda (buffer)
(with-current-buffer buffer
(if vc-dired-mode
(setq result (append result (list buffer))))))