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 = <backtab> diff-hunk-prev
C-c = <mouse-2> diff-goto-source
C-c = A diff-ediff-patch
C-c = C-x u diff-undo
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 = TAB diff-hunk-next
C-c = W widen
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 = r diff-restrict-view
C-c = u diff-revert-and-kill-hunk
C-c = w diff-kill-ring-save
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 the variable 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
(when diff--track-changes
(track-changes-unregister diff--track-changes)
(setq diff--track-changes nil))
(remove-hook 'write-contents-functions #'diff-write-contents-hooks t)
(when diff-minor-mode
(if (not diff-update-on-the-fly)
(add-hook 'write-contents-functions #'diff-write-contents-hooks nil t)
(setq diff--track-changes
(track-changes-register #'diff--track-changes-signal
:nobefore t)))))