Variable: diff-mode-map

diff-mode-map is a variable defined in diff-mode.el.gz.

Value

Large value
C-M-i          diff-hunk-next
C-M-x u        diff-undo
C-c C-a        diff-apply-hunk
C-c C-b        diff-refine-hunk
C-c C-c        diff-goto-source
C-c C-d        diff-unified->context
C-c C-e        diff-ediff-patch
C-c C-f        next-error-follow-minor-mode(var)/next-error-follow-minor-mode(fun)
C-c C-l        diff-refresh-hunk
C-c C-n        diff-restrict-view
C-c C-r        diff-reverse-direction
C-c C-s        diff-split-hunk
C-c C-t        diff-test-hunk
C-c C-u        diff-context->unified
C-c C-w        diff-ignore-whitespace-hunk
C-c RET a      diff-apply-buffer
C-x 4 A        diff-add-change-log-entries-other-window
ESC <backtab>  diff-hunk-prev
ESC <mouse-2>  diff-goto-source
ESC SPC..~     undefined
M--            negative-argument
M-0            digit-argument
M-1            digit-argument
M-2            digit-argument
M-3            digit-argument
M-4            digit-argument
M-5            digit-argument
M-6            digit-argument
M-7            digit-argument
M-8            digit-argument
M-9            digit-argument
M-<            beginning-of-buffer
M->            end-of-buffer
M-?            describe-mode
M-A            diff-ediff-patch
M-A            nil
M-DEL          scroll-down-command
M-K            diff-file-kill
M-N            diff-file-next
M-P            diff-file-prev
M-R            diff-reverse-direction
M-R            nil
M-RET          diff-goto-source
M-S-SPC        scroll-down-command
M-SPC          scroll-up-command
M-W            nil
M-W            widen
M-g            nil
M-g            revert-buffer
M-h            describe-mode
M-k            diff-hunk-kill
M-n            diff-hunk-next
M-o            diff-goto-source
M-p            diff-hunk-prev
M-q            nil
M-q            quit-window
M-r            diff-restrict-view
M-r            nil
M-z            nil
M-{            diff-file-prev
M-}            diff-file-next

Documentation

Keymap for diff-mode. See also diff-mode-shared-map.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
(defvar-keymap diff-mode-map
  :doc "Keymap for `diff-mode'.  See also `diff-mode-shared-map'."
  "ESC" (let ((map (define-keymap :parent diff-mode-shared-map)))
          ;; We want to inherit most bindings from
          ;; `diff-mode-shared-map', but not all since they may hide
          ;; useful `M-<foo>' global bindings when editing.
          (dolist (key '("A" "r" "R" "g" "q" "W" "z"))
            (keymap-set map key nil))
          map)
  ;; From compilation-minor-mode.
  "C-c C-c" #'diff-goto-source
  ;; By analogy with the global C-x 4 a binding.
  "C-x 4 A" #'diff-add-change-log-entries-other-window
  ;; Misc operations.
  "C-c C-a" #'diff-apply-hunk
  "C-c C-m a" #'diff-apply-buffer
  "C-c C-e" #'diff-ediff-patch
  "C-c C-n" #'diff-restrict-view
  "C-c C-s" #'diff-split-hunk
  "C-c C-t" #'diff-test-hunk
  "C-c C-r" #'diff-reverse-direction
  "C-c C-u" #'diff-context->unified
  ;; `d' because it duplicates the context :-(  --Stef
  "C-c C-d" #'diff-unified->context
  "C-c C-w" #'diff-ignore-whitespace-hunk
  ;; `l' because it "refreshes" the hunk like C-l refreshes the screen
  "C-c C-l" #'diff-refresh-hunk
  "C-c C-b" #'diff-refine-hunk        ;No reason for `b' :-(
  "C-c C-f" #'next-error-follow-minor-mode)