summaryrefslogtreecommitdiff
path: root/lisp/vc-dispatcher.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2008-06-12 03:49:52 +0000
committerGlenn Morris <rgm@gnu.org>2008-06-12 03:49:52 +0000
commit6b9ebb348af24cdc11c4fa1bbabdd3b4006cf64c (patch)
treef8c4f220f60aca1f608202b25c28a5f7ee56c8ff /lisp/vc-dispatcher.el
parente9c033a098da0d047c03f17c799a0b35cff627e1 (diff)
downloademacs-6b9ebb348af24cdc11c4fa1bbabdd3b4006cf64c.tar.gz
(vc-dir-mode): Check tool-bar-mode is bound.
Diffstat (limited to 'lisp/vc-dispatcher.el')
-rw-r--r--lisp/vc-dispatcher.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/vc-dispatcher.el b/lisp/vc-dispatcher.el
index 6bd43cb2644..066e45f08cc 100644
--- a/lisp/vc-dispatcher.el
+++ b/lisp/vc-dispatcher.el
@@ -1354,7 +1354,8 @@ U - if the cursor is on a file: unmark all the files with the same state
(setq major-mode 'vc-dir-mode)
(setq buffer-read-only t)
(use-local-map vc-dir-mode-map)
- (set (make-local-variable 'tool-bar-map) vc-dir-tool-bar-map)
+ (if (boundp 'tool-bar-map)
+ (set (make-local-variable 'tool-bar-map) vc-dir-tool-bar-map))
(set (make-local-variable 'vc-client-mode) client-object)
(let ((buffer-read-only nil))
(erase-buffer)