Mercurial > emacs
changeset 95834:174ed97a282b
(vc-dir-mode): Check tool-bar-mode is bound.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 12 Jun 2008 03:49:52 +0000 |
parents | 111bfc3b69a7 |
children | c11958c9ca00 |
files | lisp/vc-dispatcher.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/vc-dispatcher.el Thu Jun 12 03:49:33 2008 +0000 +++ b/lisp/vc-dispatcher.el Thu Jun 12 03:49:52 2008 +0000 @@ -1354,7 +1354,8 @@ (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)