* lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.
This commit is contained in:
parent
69e804669b
commit
52ca0d1a3e
1 changed files with 1 additions and 3 deletions
|
@ -996,9 +996,7 @@ Within directories, only files already under version control are noticed."
|
|||
((derived-mode-p 'diff-mode) diff-vc-backend)
|
||||
;; Maybe we could even use comint-mode rather than shell-mode?
|
||||
((derived-mode-p 'dired-mode 'shell-mode 'compilation-mode)
|
||||
(condition-case nil
|
||||
(vc-responsible-backend default-directory)
|
||||
(error nil)))
|
||||
(ignore-errors (vc-responsible-backend default-directory)))
|
||||
(vc-mode (vc-backend buffer-file-name))))
|
||||
|
||||
(declare-function vc-dir-current-file "vc-dir" ())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue