emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 52ca0d1: * lisp/vc/vc.el (vc-deduce-backend): Use


From: Andreas Schwab
Subject: [Emacs-diffs] emacs-26 52ca0d1: * lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.
Date: Tue, 13 Feb 2018 08:06:36 -0500 (EST)

branch: emacs-26
commit 52ca0d1a3e01a3af8b482bd1f174f48a5c0b1fa2
Author: Andreas Schwab <address@hidden>
Commit: Andreas Schwab <address@hidden>

    * lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.
---
 lisp/vc/vc.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index e767dea..a0b4cc9 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" ())



reply via email to

[Prev in Thread] Current Thread [Next in Thread]