1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-20 15:10:37 -08:00

(vc-find-file-hook): Failsafe if the backend's `registered' function burps.

This commit is contained in:
Stefan Monnier 2007-07-31 15:28:16 +00:00
parent a0e5e0759c
commit 5b5485e6fd
2 changed files with 2 additions and 1 deletions

View file

@ -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.

View file

@ -787,7 +787,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)
((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