(vc-find-file-hook): Use with-demoted-errors.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 13 Jul 2007 04:46:37 +0000 (04:46 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 13 Jul 2007 04:46:37 +0000 (04:46 +0000)
lisp/ChangeLog
lisp/vc-hooks.el

index 2e3d60d..a353b16 100644 (file)
@@ -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):
index 6ab95b3..0267913 100644 (file)
@@ -793,7 +793,7 @@ current, and kill the buffer that visits the link."
   (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