diff options
| author | Glenn Morris | 2008-06-12 03:49:52 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-06-12 03:49:52 +0000 |
| commit | 6b9ebb348af24cdc11c4fa1bbabdd3b4006cf64c (patch) | |
| tree | f8c4f220f60aca1f608202b25c28a5f7ee56c8ff | |
| parent | e9c033a098da0d047c03f17c799a0b35cff627e1 (diff) | |
| download | emacs-6b9ebb348af24cdc11c4fa1bbabdd3b4006cf64c.tar.gz emacs-6b9ebb348af24cdc11c4fa1bbabdd3b4006cf64c.zip | |
(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 | |||
| 1354 | (setq major-mode 'vc-dir-mode) | 1354 | (setq major-mode 'vc-dir-mode) |
| 1355 | (setq buffer-read-only t) | 1355 | (setq buffer-read-only t) |
| 1356 | (use-local-map vc-dir-mode-map) | 1356 | (use-local-map vc-dir-mode-map) |
| 1357 | (set (make-local-variable 'tool-bar-map) vc-dir-tool-bar-map) | 1357 | (if (boundp 'tool-bar-map) |
| 1358 | (set (make-local-variable 'tool-bar-map) vc-dir-tool-bar-map)) | ||
| 1358 | (set (make-local-variable 'vc-client-mode) client-object) | 1359 | (set (make-local-variable 'vc-client-mode) client-object) |
| 1359 | (let ((buffer-read-only nil)) | 1360 | (let ((buffer-read-only nil)) |
| 1360 | (erase-buffer) | 1361 | (erase-buffer) |