diff options
| author | Stefan Monnier | 2008-06-03 07:56:02 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-06-03 07:56:02 +0000 |
| commit | 8d27bcdf2e758dc6a4868c8fdee65b9a93101b67 (patch) | |
| tree | 2ea72610576caac8f260c9fbdd2b896e2e2eb0f7 | |
| parent | e914c409be7aa66bc4021834a728705cb633c38b (diff) | |
| download | emacs-8d27bcdf2e758dc6a4868c8fdee65b9a93101b67.tar.gz emacs-8d27bcdf2e758dc6a4868c8fdee65b9a93101b67.zip | |
(vc-dir-menu-map-filter): Don't fail if vc-client-mode is not set.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/vc-dispatcher.el | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 63496779e63..ec5be377aa7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2008-06-03 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-06-03 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * vc-dispatcher.el (vc-dir-menu-map-filter): Don't fail if | ||
| 4 | vc-client-mode is not set. | ||
| 5 | |||
| 3 | * image-mode.el (image-mode-map): Suppress key map and bind `q'. | 6 | * image-mode.el (image-mode-map): Suppress key map and bind `q'. |
| 4 | * doc-view.el (doc-view-mode-map): Inherit from image-mode-map. | 7 | * doc-view.el (doc-view-mode-map): Inherit from image-mode-map. |
| 5 | 8 | ||
diff --git a/lisp/vc-dispatcher.el b/lisp/vc-dispatcher.el index f62b3b0744f..dd4d20314ed 100644 --- a/lisp/vc-dispatcher.el +++ b/lisp/vc-dispatcher.el | |||
| @@ -760,7 +760,10 @@ See `run-hooks'." | |||
| 760 | (when (and (symbolp orig-binding) (fboundp orig-binding)) | 760 | (when (and (symbolp orig-binding) (fboundp orig-binding)) |
| 761 | (setq orig-binding (indirect-function orig-binding))) | 761 | (setq orig-binding (indirect-function orig-binding))) |
| 762 | (let ((ext-binding | 762 | (let ((ext-binding |
| 763 | (funcall (vc-client-object->extra-menu vc-client-mode)))) | 763 | ;; This may be executed at load-time for tool-bar-local-item-from-menu |
| 764 | ;; but at that time vc-client-mode is not known (or even bound) yet. | ||
| 765 | (when (and (boundp 'vc-client-mode) vc-client-mode) | ||
| 766 | (funcall (vc-client-object->extra-menu vc-client-mode))))) | ||
| 764 | (if (null ext-binding) | 767 | (if (null ext-binding) |
| 765 | orig-binding | 768 | orig-binding |
| 766 | (append orig-binding | 769 | (append orig-binding |