diff options
| author | Chong Yidong | 2008-10-11 19:59:11 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-11 19:59:11 +0000 |
| commit | dac05b9caefa3edec2c3434f4924d864db5c7b27 (patch) | |
| tree | dd12bffbfe7e9069f686c43fdc47df76410492af | |
| parent | ecad93d232af54ceee5255fb8f7cea935a400e75 (diff) | |
| download | emacs-dac05b9caefa3edec2c3434f4924d864db5c7b27.tar.gz emacs-dac05b9caefa3edec2c3434f4924d864db5c7b27.zip | |
(compilation-mode-tool-bar-map): Initialize it unconditionally.
| -rw-r--r-- | lisp/progmodes/compile.el | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index c25c45f356f..f6e15d0ba4e 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1471,26 +1471,25 @@ Returns the compilation buffer created." | |||
| 1471 | `compilation-minor-mode-map' is a parent of this.") | 1471 | `compilation-minor-mode-map' is a parent of this.") |
| 1472 | 1472 | ||
| 1473 | (defvar compilation-mode-tool-bar-map | 1473 | (defvar compilation-mode-tool-bar-map |
| 1474 | (if (display-graphic-p) | 1474 | (let ((map (butlast (copy-keymap tool-bar-map))) |
| 1475 | (let ((map (butlast (copy-keymap tool-bar-map))) | 1475 | (help (last tool-bar-map))) ;; Keep Help last in tool bar |
| 1476 | (help (last tool-bar-map))) ;; Keep Help last in tool bar | 1476 | (tool-bar-local-item |
| 1477 | (tool-bar-local-item | 1477 | "left-arrow" 'previous-error-no-select 'previous-error-no-select map |
| 1478 | "left-arrow" 'previous-error-no-select 'previous-error-no-select map | 1478 | :rtl "right-arrow" |
| 1479 | :rtl "right-arrow" | 1479 | :help "Goto previous error") |
| 1480 | :help "Goto previous error") | 1480 | (tool-bar-local-item |
| 1481 | (tool-bar-local-item | 1481 | "right-arrow" 'next-error-no-select 'next-error-no-select map |
| 1482 | "right-arrow" 'next-error-no-select 'next-error-no-select map | 1482 | :rtl "left-arrow" |
| 1483 | :rtl "left-arrow" | 1483 | :help "Goto next error") |
| 1484 | :help "Goto next error") | 1484 | (tool-bar-local-item |
| 1485 | (tool-bar-local-item | 1485 | "cancel" 'kill-compilation 'kill-compilation map |
| 1486 | "cancel" 'kill-compilation 'kill-compilation map | 1486 | :enable '(let ((buffer (compilation-find-buffer))) |
| 1487 | :enable '(let ((buffer (compilation-find-buffer))) | 1487 | (get-buffer-process buffer)) |
| 1488 | (get-buffer-process buffer)) | 1488 | :help "Stop compilation") |
| 1489 | :help "Stop compilation") | 1489 | (tool-bar-local-item |
| 1490 | (tool-bar-local-item | 1490 | "refresh" 'recompile 'recompile map |
| 1491 | "refresh" 'recompile 'recompile map | 1491 | :help "Restart compilation") |
| 1492 | :help "Restart compilation") | 1492 | (append map help))) |
| 1493 | (append map help)))) | ||
| 1494 | 1493 | ||
| 1495 | (put 'compilation-mode 'mode-class 'special) | 1494 | (put 'compilation-mode 'mode-class 'special) |
| 1496 | 1495 | ||