Commit 1bd8df7e authored by Masatake YAMATO's avatar Masatake YAMATO
Browse files

* vc.el (vc-dired-hook): check the backend returned from...

* vc.el (vc-dired-hook): check the backend returned from `vc-responsible-backend' can really handle `subdir'.
parent 511ab56a
2007-06-15 Masatake YAMATO <jet@gyve.org>
* vc.el (vc-dired-hook): check the backend returned from
`vc-responsible-backend' can really handle `subdir'.
2007-06-15 Chong Yidong <cyd@stupidchicken.com> 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
* wid-edit.el (widget-add-documentation-string-button): Fix * wid-edit.el (widget-add-documentation-string-button): Fix
......
...@@ -2216,7 +2216,9 @@ Called by dired after any portion of a vc-dired buffer has been read in." ...@@ -2216,7 +2216,9 @@ Called by dired after any portion of a vc-dired buffer has been read in."
;; if the backend supports it, get the state ;; if the backend supports it, get the state
;; of all files in this directory at once ;; of all files in this directory at once
(let ((backend (vc-responsible-backend subdir))) (let ((backend (vc-responsible-backend subdir)))
(if (vc-find-backend-function backend 'dir-state) ;; check `backend' can really handle `subdir'.
(if (and (vc-call-backend backend 'responsible-p subdir)
(vc-find-backend-function backend 'dir-state))
(vc-call-backend backend 'dir-state subdir))) (vc-call-backend backend 'dir-state subdir)))
(forward-line 1) (forward-line 1)
;; erase (but don't remove) the "total" line ;; erase (but don't remove) the "total" line
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment