diff lisp/vc-hooks.el @ 81834:1ec5a70aa56f

(vc-find-file-hook): Use with-demoted-errors.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 13 Jul 2007 04:46:37 +0000
parents 7ac8c70c6834
children a4222c1c9c2d
line wrap: on
line diff
--- a/lisp/vc-hooks.el	Fri Jul 13 01:06:36 2007 +0000
+++ b/lisp/vc-hooks.el	Fri Jul 13 04:46:37 2007 +0000
@@ -793,7 +793,7 @@
   (when buffer-file-name
     (vc-file-clearprops buffer-file-name)
     (cond
-     ((vc-backend buffer-file-name)
+     ((with-demoted-errors (vc-backend buffer-file-name))
       ;; Compute the state and put it in the modeline.
       (vc-mode-line buffer-file-name)
       (unless vc-make-backup-files