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 M-u diff-revert-and-kill-hunk
C-c RET a diff-apply-buffer
C-c RET n diff-delete-other-hunks
C-x 4 A diff-add-change-log-entries-other-window
ESC <backtab> diff-hunk-prev
ESC <mouse-2> diff-goto-source
M-A diff-ediff-patch
M-A nil
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-W nil
M-W widen
M-k diff-hunk-kill
M-n diff-hunk-next
M-o diff-goto-source
M-p diff-hunk-prev
M-r diff-restrict-view
M-r nil
M-u diff-revert-and-kill-hunk
M-w diff-kill-ring-save
M-w 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" "W" "w"))
(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 M-u" #'diff-revert-and-kill-hunk
"C-c C-m a" #'diff-apply-buffer
"C-c C-m n" #'diff-delete-other-hunks
"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)