Variable: diff-minor-mode

diff-minor-mode is a buffer-local variable defined in diff-mode.el.gz.

Documentation

Non-nil if Diff minor mode is enabled.

Use the command diff-minor-mode(var)/diff-minor-mode(fun) to change this variable.

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)))))