changeset 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 01635cc937e6
children a4222c1c9c2d
files lisp/ChangeLog lisp/vc-hooks.el
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Jul 13 01:06:36 2007 +0000
+++ b/lisp/ChangeLog	Fri Jul 13 04:46:37 2007 +0000
@@ -1,3 +1,7 @@
+2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* vc-hooks.el (vc-find-file-hook): Use with-demoted-errors.
+
 2007-07-12  Davis Herring  <herring@lanl.gov>
 
 	* desktop.el (desktop-buffer-info, desktop-save):
--- 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