From 6b9ebb348af24cdc11c4fa1bbabdd3b4006cf64c Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 12 Jun 2008 03:49:52 +0000 Subject: [PATCH] (vc-dir-mode): Check tool-bar-mode is bound. --- lisp/vc-dispatcher.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2