diff options
| author | Masatake YAMATO | 2007-06-15 18:50:19 +0000 |
|---|---|---|
| committer | Masatake YAMATO | 2007-06-15 18:50:19 +0000 |
| commit | 1bd8df7efa018cdf5342ca6a0a478a14ebf8e773 (patch) | |
| tree | b3c42eacf073371918b54260367d3ce39028c256 | |
| parent | 511ab56a1ce5a4a2cea73953e755404f0ed32b65 (diff) | |
| download | emacs-1bd8df7efa018cdf5342ca6a0a478a14ebf8e773.tar.gz emacs-1bd8df7efa018cdf5342ca6a0a478a14ebf8e773.zip | |
* vc.el (vc-dired-hook): check the backend returned from `vc-responsible-backend' can really handle `subdir'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7013bdaf3cd..b67b406c600 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-06-15 Masatake YAMATO <jet@gyve.org> | ||
| 2 | |||
| 3 | * vc.el (vc-dired-hook): check the backend returned from | ||
| 4 | `vc-responsible-backend' can really handle `subdir'. | ||
| 5 | |||
| 1 | 2007-06-15 Chong Yidong <cyd@stupidchicken.com> | 6 | 2007-06-15 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * wid-edit.el (widget-add-documentation-string-button): Fix | 8 | * wid-edit.el (widget-add-documentation-string-button): Fix |
diff --git a/lisp/vc.el b/lisp/vc.el index 7d9844f3bc9..d5c53a15a76 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -2216,7 +2216,9 @@ Called by dired after any portion of a vc-dired buffer has been read in." | |||
| 2216 | ;; if the backend supports it, get the state | 2216 | ;; if the backend supports it, get the state |
| 2217 | ;; of all files in this directory at once | 2217 | ;; of all files in this directory at once |
| 2218 | (let ((backend (vc-responsible-backend subdir))) | 2218 | (let ((backend (vc-responsible-backend subdir))) |
| 2219 | (if (vc-find-backend-function backend 'dir-state) | 2219 | ;; check `backend' can really handle `subdir'. |
| 2220 | (if (and (vc-call-backend backend 'responsible-p subdir) | ||
| 2221 | (vc-find-backend-function backend 'dir-state)) | ||
| 2220 | (vc-call-backend backend 'dir-state subdir))) | 2222 | (vc-call-backend backend 'dir-state subdir))) |
| 2221 | (forward-line 1) | 2223 | (forward-line 1) |
| 2222 | ;; erase (but don't remove) the "total" line | 2224 | ;; erase (but don't remove) the "total" line |