diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/vc/vc.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index e767deace2e..a0b4cc92719 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -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" ()) |