diff options
| author | Andreas Schwab | 2018-02-13 14:05:20 +0100 |
|---|---|---|
| committer | Andreas Schwab | 2018-02-13 14:05:49 +0100 |
| commit | 52ca0d1a3e01a3af8b482bd1f174f48a5c0b1fa2 (patch) | |
| tree | 5608102792bb7613c93467704e77e7563e2f7644 | |
| parent | 69e804669bacfef05c1ecdcd3f664dd486273db4 (diff) | |
| download | emacs-52ca0d1a3e01a3af8b482bd1f174f48a5c0b1fa2.tar.gz emacs-52ca0d1a3e01a3af8b482bd1f174f48a5c0b1fa2.zip | |
* lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.
| -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." | |||
| 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 | (condition-case nil | 999 | (ignore-errors (vc-responsible-backend default-directory))) |
| 1000 | (vc-responsible-backend default-directory) | ||
| 1001 | (error nil))) | ||
| 1002 | (vc-mode (vc-backend buffer-file-name)))) | 1000 | (vc-mode (vc-backend buffer-file-name)))) |
| 1003 | 1001 | ||
| 1004 | (declare-function vc-dir-current-file "vc-dir" ()) | 1002 | (declare-function vc-dir-current-file "vc-dir" ()) |