diff options
| author | Eric S. Raymond | 2008-05-02 07:47:18 +0000 |
|---|---|---|
| committer | Eric S. Raymond | 2008-05-02 07:47:18 +0000 |
| commit | 6cdc3bc9f124b88bc791694c1d736d681fb823e0 (patch) | |
| tree | ff1e0c24020703dbe1d4bafb8f2952394d58c61d | |
| parent | caf37b1f19190ce42797f1ea850cbce8b12b6299 (diff) | |
| download | emacs-6cdc3bc9f124b88bc791694c1d736d681fb823e0.tar.gz emacs-6cdc3bc9f124b88bc791694c1d736d681fb823e0.zip | |
More preparation for removing dired.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/vc-hooks.el | 4 | ||||
| -rw-r--r-- | lisp/vc.el | 5 |
3 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c53e77bddca..5c0afd56b9e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -7,6 +7,9 @@ | |||
| 7 | * vc-hooks.el (vc-toggle-read-only): Throw an error when a user | 7 | * vc-hooks.el (vc-toggle-read-only): Throw an error when a user |
| 8 | tries this on a version-controlled buffer. it will do useless or | 8 | tries this on a version-controlled buffer. it will do useless or |
| 9 | actively bad things on any version control system newer than RCS. | 9 | actively bad things on any version control system newer than RCS. |
| 10 | * vc-hooks.el (vc-dired-resynch-file), | ||
| 11 | vc.el (vc-dired-resynch-file): Change name of primitive to | ||
| 12 | vc-directory-resynch-file, preoaring to remove dired. | ||
| 10 | 13 | ||
| 11 | 2008-05-02 Dan Nicolaescu <dann@ics.uci.edu> | 14 | 2008-05-02 Dan Nicolaescu <dann@ics.uci.edu> |
| 12 | 15 | ||
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 5b513c46c47..76fe6053f19 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el | |||
| @@ -751,7 +751,7 @@ Before doing that, check if there are any old backups and get rid of them." | |||
| 751 | (vc-call make-version-backups-p file) | 751 | (vc-call make-version-backups-p file) |
| 752 | (vc-make-version-backup file))))) | 752 | (vc-make-version-backup file))))) |
| 753 | 753 | ||
| 754 | (declare-function vc-dired-resynch-file "vc" (file)) | 754 | (declare-function vc-directory-resynch-file "vc" (file)) |
| 755 | 755 | ||
| 756 | (defun vc-after-save () | 756 | (defun vc-after-save () |
| 757 | "Function to be called by `basic-save-buffer' (in files.el)." | 757 | "Function to be called by `basic-save-buffer' (in files.el)." |
| @@ -775,7 +775,7 @@ Before doing that, check if there are any old backups and get rid of them." | |||
| 775 | (when (featurep 'vc) | 775 | (when (featurep 'vc) |
| 776 | ;; If VC is not loaded, then there can't be | 776 | ;; If VC is not loaded, then there can't be |
| 777 | ;; any VC Dired buffer to synchronize. | 777 | ;; any VC Dired buffer to synchronize. |
| 778 | (vc-dired-resynch-file file))))) | 778 | (vc-directory-resynch-file file))))) |
| 779 | 779 | ||
| 780 | (defvar vc-menu-entry | 780 | (defvar vc-menu-entry |
| 781 | '(menu-item "Version Control" vc-menu-map | 781 | '(menu-item "Version Control" vc-menu-map |
diff --git a/lisp/vc.el b/lisp/vc.el index ae575985f1a..f1286aece5e 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1896,7 +1896,7 @@ rather than user editing!" | |||
| 1896 | (when buffer | 1896 | (when buffer |
| 1897 | (with-current-buffer buffer | 1897 | (with-current-buffer buffer |
| 1898 | (vc-resynch-window file keep noquery))))) | 1898 | (vc-resynch-window file keep noquery))))) |
| 1899 | (vc-dired-resynch-file file) | 1899 | (vc-directory-resynch-file file) |
| 1900 | (when (memq 'vc-dir-mark-buffer-changed after-save-hook) | 1900 | (when (memq 'vc-dir-mark-buffer-changed after-save-hook) |
| 1901 | (let ((buffer (get-file-buffer file))) | 1901 | (let ((buffer (get-file-buffer file))) |
| 1902 | (vc-dir-mark-buffer-changed file)))) | 1902 | (vc-dir-mark-buffer-changed file)))) |
| @@ -2726,8 +2726,9 @@ Called by dired after any portion of a vc-dired buffer has been read in." | |||
| 2726 | (push buffer result))))) | 2726 | (push buffer result))))) |
| 2727 | (nreverse result))) | 2727 | (nreverse result))) |
| 2728 | 2728 | ||
| 2729 | (defun vc-dired-resynch-file (file) | 2729 | (defun vc-directory-resynch-file (file) |
| 2730 | "Update the entries for FILE in any VC Dired buffers that list it." | 2730 | "Update the entries for FILE in any VC Dired buffers that list it." |
| 2731 | ;;FIXME This needs to be implemented so it works for vc-dir | ||
| 2731 | (let ((buffers (vc-dired-buffers-for-dir (file-name-directory file)))) | 2732 | (let ((buffers (vc-dired-buffers-for-dir (file-name-directory file)))) |
| 2732 | (when buffers | 2733 | (when buffers |
| 2733 | (mapcar (lambda (buffer) | 2734 | (mapcar (lambda (buffer) |