]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 2e3d60d70e1dfa426289d64d8467923812a025da..a353b168976405aa89f4802422692a21a81aa8a9 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 6ab95b333c6dd042d498c565a36dd35c31d34eb2..02679136bc6f40ed239de83028e2a4fe334890e1 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