Function: diff-minor-mode
diff-minor-mode is an autoloaded, interactive and byte-compiled
function defined in diff-mode.el.gz.
Signature
(diff-minor-mode &optional ARG)
Documentation
Toggle Diff minor mode.
C-c = - negative-argument
C-c = 0 digit-argument
C-c = 1 digit-argument
C-c = 2 digit-argument
C-c = 3 digit-argument
C-c = 4 digit-argument
C-c = 5 digit-argument
C-c = 6 digit-argument
C-c = 7 digit-argument
C-c = 8 digit-argument
C-c = 9 digit-argument
C-c = < beginning-of-buffer
C-c = <backtab> diff-hunk-prev
C-c = <mouse-2> diff-goto-source
C-c = > end-of-buffer
C-c = ? describe-mode
C-c = A diff-ediff-patch
C-c = C-x u diff-undo
C-c = DEL scroll-down-command
C-c = K diff-file-kill
C-c = N diff-file-next
C-c = P diff-file-prev
C-c = R diff-reverse-direction
C-c = RET diff-goto-source
C-c = S-SPC scroll-down-command
C-c = SPC scroll-up-command
C-c = SPC..~ undefined
C-c = TAB diff-hunk-next
C-c = W widen
C-c = g revert-buffer
C-c = h describe-mode
C-c = k diff-hunk-kill
C-c = n diff-hunk-next
C-c = o diff-goto-source
C-c = p diff-hunk-prev
C-c = q quit-window
C-c = r diff-restrict-view
C-c = { diff-file-prev
C-c = } diff-file-next
This is a minor mode. If called interactively, toggle the Diff
minor mode mode. If the prefix argument is positive, enable the
mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable
the mode if ARG is nil, omitted, or is a positive number.
Disable the mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate diff-minor-mode(var)/diff-minor-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
;;;###autoload
(define-minor-mode diff-minor-mode
"Toggle Diff minor mode.
\\{diff-minor-mode-map}"
:group 'diff-mode :lighter " Diff"
;; FIXME: setup font-lock
;; setup change hooks
(if (not diff-update-on-the-fly)
(add-hook 'write-contents-functions #'diff-write-contents-hooks nil t)
(make-local-variable 'diff-unhandled-changes)
(add-hook 'after-change-functions #'diff-after-change-function nil t)
(add-hook 'post-command-hook #'diff-post-command-hook nil t)))