]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-dir-mode): Check tool-bar-mode is bound.
authorGlenn Morris <rgm@gnu.org>
Thu, 12 Jun 2008 03:49:52 +0000 (03:49 +0000)
committerGlenn Morris <rgm@gnu.org>
Thu, 12 Jun 2008 03:49:52 +0000 (03:49 +0000)
lisp/vc-dispatcher.el

index 6bd43cb2644094b05608b9c907c68d7f52f8115d..066e45f08cca39d4c9fefd4bc2d324af3017c6e4 100644 (file)
@@ -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)