aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/vc/vc.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 6516c91de3c..e767deace2e 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -996,7 +996,9 @@ Within directories, only files already under version control are noticed."
996 ((derived-mode-p 'diff-mode) diff-vc-backend) 996 ((derived-mode-p 'diff-mode) diff-vc-backend)
997 ;; Maybe we could even use comint-mode rather than shell-mode? 997 ;; Maybe we could even use comint-mode rather than shell-mode?
998 ((derived-mode-p 'dired-mode 'shell-mode 'compilation-mode) 998 ((derived-mode-p 'dired-mode 'shell-mode 'compilation-mode)
999 (vc-responsible-backend default-directory)) 999 (condition-case nil
1000 (vc-responsible-backend default-directory)
1001 (error nil)))
1000 (vc-mode (vc-backend buffer-file-name)))) 1002 (vc-mode (vc-backend buffer-file-name))))
1001 1003
1002(declare-function vc-dir-current-file "vc-dir" ()) 1004(declare-function vc-dir-current-file "vc-dir" ())