diff options
author | Glenn Morris <rgm@gnu.org> | 2008-06-12 03:49:52 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2008-06-12 03:49:52 +0000 |
commit | 6b9ebb348af24cdc11c4fa1bbabdd3b4006cf64c (patch) | |
tree | f8c4f220f60aca1f608202b25c28a5f7ee56c8ff | |
parent | e9c033a098da0d047c03f17c799a0b35cff627e1 (diff) | |
download | emacs-6b9ebb348af24cdc11c4fa1bbabdd3b4006cf64c.tar.gz |
(vc-dir-mode): Check tool-bar-mode is bound.
-rw-r--r-- | lisp/vc-dispatcher.el | 3 |
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) |