diff options
| author | Stefan Monnier | 2007-07-31 15:28:16 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-07-31 15:28:16 +0000 |
| commit | 5b5485e6fdd091eb5fb99ab4e4fab430ae87f351 (patch) | |
| tree | 169a5f9b61f6a6132320c769fe31cb784f5c41eb | |
| parent | a0e5e0759c5d41e10732f6db7b80033ad78c8060 (diff) | |
| download | emacs-5b5485e6fdd091eb5fb99ab4e4fab430ae87f351.tar.gz emacs-5b5485e6fdd091eb5fb99ab4e4fab430ae87f351.zip | |
(vc-find-file-hook): Failsafe if the backend's `registered' function burps.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/vc-hooks.el | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0d97b7b6ea5..dc0c05462c8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | * vc-bzr.el: New file (copied from the trunk). | 3 | * vc-bzr.el: New file (copied from the trunk). |
| 4 | 4 | ||
| 5 | * vc-hooks.el (vc-handled-backends): Add BZR. | 5 | * vc-hooks.el (vc-handled-backends): Add BZR. |
| 6 | (vc-find-file-hook): Failsafe if the backend's `registered' function burps. | ||
| 6 | 7 | ||
| 7 | * server.el (server-window): Add switch-to-buffer-other-frame option. | 8 | * server.el (server-window): Add switch-to-buffer-other-frame option. |
| 8 | 9 | ||
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 3afc3468e02..00c7f09f345 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el | |||
| @@ -787,7 +787,7 @@ current, and kill the buffer that visits the link." | |||
| 787 | (when buffer-file-name | 787 | (when buffer-file-name |
| 788 | (vc-file-clearprops buffer-file-name) | 788 | (vc-file-clearprops buffer-file-name) |
| 789 | (cond | 789 | (cond |
| 790 | ((vc-backend buffer-file-name) | 790 | ((ignore-errors (vc-backend buffer-file-name)) |
| 791 | ;; Compute the state and put it in the modeline. | 791 | ;; Compute the state and put it in the modeline. |
| 792 | (vc-mode-line buffer-file-name) | 792 | (vc-mode-line buffer-file-name) |
| 793 | (unless vc-make-backup-files | 793 | (unless vc-make-backup-files |