]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.
authorAndreas Schwab <schwab@suse.de>
Tue, 13 Feb 2018 13:05:20 +0000 (14:05 +0100)
committerAndreas Schwab <schwab@suse.de>
Tue, 13 Feb 2018 13:05:49 +0000 (14:05 +0100)
lisp/vc/vc.el

index e767deace2ed9a45a55d3d58c9c72fad3d1baf68..a0b4cc92719355b4d8b6b116b395a3efbc712757 100644 (file)
@@ -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" ())