Variable: compilation-mode-map

compilation-mode-map is a variable defined in compile.el.gz.

Value

Large value
-              negative-argument
0              digit-argument
1              digit-argument
2              digit-argument
3              digit-argument
4              digit-argument
5              digit-argument
6              digit-argument
7              digit-argument
8              digit-argument
9              digit-argument
<              beginning-of-buffer
<backtab>      compilation-previous-error
<follow-link>  mouse-face
<mouse-2>      compile-goto-error
>              end-of-buffer
?              describe-mode
C-c C-c        compile-goto-error
C-c C-f        next-error-follow-minor-mode(var)/next-error-follow-minor-mode(fun)
C-c C-k        kill-compilation
C-o            compilation-display-error
DEL            scroll-down-command
M-n            compilation-next-error
M-p            compilation-previous-error
M-{            compilation-previous-file
M-}            compilation-next-file
RET            compile-goto-error
S-SPC          scroll-down-command
SPC            scroll-up-command
SPC..~         undefined
TAB            compilation-next-error
g              recompile
g              revert-buffer
h              describe-mode
n              next-error-no-select
p              previous-error-no-select
q              quit-window

Documentation

Keymap for compilation log buffers.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defvar compilation-mode-map
  (let ((map (make-sparse-keymap)))
    ;; Don't inherit from compilation-minor-mode-map,
    ;; because that introduces a menu bar item we don't want.
    ;; That confuses C-down-mouse-3.
    (set-keymap-parent map special-mode-map)
    (define-key map [mouse-2] 'compile-goto-error)
    (define-key map [follow-link] 'mouse-face)
    (define-key map "\C-c\C-c" 'compile-goto-error)
    (define-key map "\C-m" 'compile-goto-error)
    (define-key map "\C-o" 'compilation-display-error)
    (define-key map "\C-c\C-k" 'kill-compilation)
    (define-key map "\M-n" 'compilation-next-error)
    (define-key map "\M-p" 'compilation-previous-error)
    (define-key map "\M-{" 'compilation-previous-file)
    (define-key map "\M-}" 'compilation-next-file)
    (define-key map "n" 'next-error-no-select)
    (define-key map "p" 'previous-error-no-select)
    (define-key map "\t" 'compilation-next-error)
    (define-key map [backtab] 'compilation-previous-error)
    (define-key map "g" 'recompile) ; revert

    (define-key map "\C-c\C-f" 'next-error-follow-minor-mode)

    ;; Set up the menu-bar
    (let ((submap (make-sparse-keymap "Compile")))
      (define-key map [menu-bar compilation]
	(cons "Compile" submap))
      (set-keymap-parent submap compilation-menu-map))
    (define-key map [menu-bar compilation compilation-separator2]
      '("----" . nil))
    (define-key map [menu-bar compilation compilation-grep]
      '(menu-item "Search Files (grep)..." grep
		  :help "Run grep, with user-specified args, and collect output in a buffer"))
    (define-key map [menu-bar compilation compilation-recompile]
      '(menu-item "Recompile" recompile
	:help "Re-compile the program including the current buffer"))
    (define-key map [menu-bar compilation compilation-compile]
      '(menu-item "Compile..." compile
		  :help "Compile the program including the current buffer.  Default: run `make'"))
    map)
  "Keymap for compilation log buffers.")