* vc-hooks.el (vc-toggle-read-only): Throw an error when a user
tries this on a version-controlled buffer. it will do useless or
actively bad things on any version control system newer than RCS.
+ * vc-hooks.el (vc-dired-resynch-file),
+ vc.el (vc-dired-resynch-file): Change name of primitive to
+ vc-directory-resynch-file, preoaring to remove dired.
2008-05-02 Dan Nicolaescu <dann@ics.uci.edu>
(vc-call make-version-backups-p file)
(vc-make-version-backup file)))))
-(declare-function vc-dired-resynch-file "vc" (file))
+(declare-function vc-directory-resynch-file "vc" (file))
(defun vc-after-save ()
"Function to be called by `basic-save-buffer' (in files.el)."
(when (featurep 'vc)
;; If VC is not loaded, then there can't be
;; any VC Dired buffer to synchronize.
- (vc-dired-resynch-file file)))))
+ (vc-directory-resynch-file file)))))
(defvar vc-menu-entry
'(menu-item "Version Control" vc-menu-map
(when buffer
(with-current-buffer buffer
(vc-resynch-window file keep noquery)))))
- (vc-dired-resynch-file file)
+ (vc-directory-resynch-file file)
(when (memq 'vc-dir-mark-buffer-changed after-save-hook)
(let ((buffer (get-file-buffer file)))
(vc-dir-mark-buffer-changed file))))
(push buffer result)))))
(nreverse result)))
-(defun vc-dired-resynch-file (file)
+(defun vc-directory-resynch-file (file)
"Update the entries for FILE in any VC Dired buffers that list it."
+ ;;FIXME This needs to be implemented so it works for vc-dir
(let ((buffers (vc-dired-buffers-for-dir (file-name-directory file))))
(when buffers
(mapcar (lambda (buffer)