emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

toggling diff-auto-refine


From: Thien-Thi Nguyen
Subject: toggling diff-auto-refine
Date: Sat, 29 Dec 2007 15:03:21 +0100

how about replacing the `(defcustom diff-auto-refine ...)' with:

(define-minor-mode diff-auto-refine
  "Automatically highlight changes in detail as the user visits hunks."
  :group 'diff-mode :init-value nil :lighter " Auto-Refine"
  (when diff-auto-refine
    (condition-case-no-debug nil (diff-refine-hunk) (error nil))))

i find this useful for cruising around unwieldy diffs where there is a
mix of quickly refined hunks and slowly refined hunks.

thi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]