diff-mode
diff-mode is an interactive autoloaded compiled Lisp function in `diff-mode.el
'.
(diff-mode)
Major mode for viewing/editing context diffs.
Supports unified and context diffs as well as (to a lesser extent)
normal diffs.
When the buffer is read-only, the ESC prefix is not necessary.
If you edit the buffer manually, diff-mode will try to update the hunk
headers for you on-the-fly.
You can also switch between context diff and unified diff with M-x diff-context->unified,
or vice versa with M-x diff-unified->context and you can also reverse the direction of
a diff with M-x diff-reverse-direction.
key binding
--- -------
C-c Prefix Command
C-x Prefix Command
ESC Prefix Command
C-x 4 Prefix Command
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
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-M-i diff-hunk-next
M-RET diff-goto-source
M-SPC scroll-up-command
M-- negative-argument
M-0 .. M-9 digit-argument
M-< beginning-of-buffer
M-> end-of-buffer
M-? describe-mode
M-K diff-file-kill
M-N diff-file-next
M-P diff-file-prev
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-{ diff-file-prev
M-} diff-file-next
M-DEL scroll-down-command
M-S-SPC scroll-down-command
ESC <backtab> diff-hunk-prev
ESC <mouse-2> diff-goto-source
ESC <remap> Prefix Command
C-x 4 A diff-add-change-log-entries-other-window
ESC <remap> <undo> diff-undo
This mode runs the hook `diff-mode-hook', as the final step
during initialization.