Mercurial > emacs
changeset 78373:3386631a602c
(vc-find-file-hook): Failsafe if the backend's `registered' function burps.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 31 Jul 2007 15:28:16 +0000 |
parents | 53ed644d1a88 |
children | 18f6eb588c67 |
files | lisp/ChangeLog lisp/vc-hooks.el |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Tue Jul 31 15:26:05 2007 +0000 +++ b/lisp/ChangeLog Tue Jul 31 15:28:16 2007 +0000 @@ -3,6 +3,7 @@ * vc-bzr.el: New file (copied from the trunk). * vc-hooks.el (vc-handled-backends): Add BZR. + (vc-find-file-hook): Failsafe if the backend's `registered' function burps. * server.el (server-window): Add switch-to-buffer-other-frame option.
--- a/lisp/vc-hooks.el Tue Jul 31 15:26:05 2007 +0000 +++ b/lisp/vc-hooks.el Tue Jul 31 15:28:16 2007 +0000 @@ -787,7 +787,7 @@ (when buffer-file-name (vc-file-clearprops buffer-file-name) (cond - ((vc-backend buffer-file-name) + ((ignore-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