From fc8b8d0fb5751ee5e4363648519f2ec85e0132af Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 13 Jul 2007 04:46:37 +0000 Subject: [PATCH] (vc-find-file-hook): Use with-demoted-errors. --- lisp/ChangeLog | 4 ++++ lisp/vc-hooks.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2e3d60d70e1..a353b168976 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2007-07-13 Stefan Monnier + + * vc-hooks.el (vc-find-file-hook): Use with-demoted-errors. + 2007-07-12 Davis Herring * desktop.el (desktop-buffer-info, desktop-save): diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 6ab95b333c6..02679136bc6 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el @@ -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 -- 2.39.2