projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69e8046
)
* lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.
author
Andreas Schwab
<schwab@suse.de>
Tue, 13 Feb 2018 13:05:20 +0000
(14:05 +0100)
committer
Andreas Schwab
<schwab@suse.de>
Tue, 13 Feb 2018 13:05:49 +0000
(14:05 +0100)
lisp/vc/vc.el
patch
|
blob
|
history
diff --git
a/lisp/vc/vc.el
b/lisp/vc/vc.el
index e767deace2ed9a45a55d3d58c9c72fad3d1baf68..a0b4cc92719355b4d8b6b116b395a3efbc712757 100644
(file)
--- 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" ())