Variable: grep-mode-map

grep-mode-map is a variable defined in grep.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
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
RET            compile-goto-error
S-SPC          scroll-down-command
S-SPC          scroll-down-command
SPC            scroll-up-command
SPC            scroll-up-command
SPC..~         undefined
TAB            compilation-next-error
g              recompile
g              revert-buffer
h              describe-mode
l              recenter-current-error
n              next-error-no-select
p              previous-error-no-select
q              quit-window
{              compilation-previous-file
}              compilation-next-file

Documentation

Keymap for grep buffers.

compilation-minor-mode-map is a cdr of this.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/grep.el.gz
(defvar grep-mode-map
  (let ((map (make-sparse-keymap)))
    (set-keymap-parent map compilation-minor-mode-map)
    (define-key map " " #'scroll-up-command)
    (define-key map [?\S-\ ] #'scroll-down-command)
    (define-key map "\^?" #'scroll-down-command)
    (define-key map "\C-c\C-f" #'next-error-follow-minor-mode)

    (define-key map "\r" #'compile-goto-error)  ;; ?
    (define-key map "{" #'compilation-previous-file)
    (define-key map "}" #'compilation-next-file)
    (define-key map "\t" #'compilation-next-error)
    (define-key map [backtab] #'compilation-previous-error)
    map)
  "Keymap for grep buffers.
`compilation-minor-mode-map' is a cdr of this.")