unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* toggling diff-auto-refine
@ 2007-12-29 14:03 Thien-Thi Nguyen
  2007-12-30 17:03 ` Thien-Thi Nguyen
  2008-01-02  2:37 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: Thien-Thi Nguyen @ 2007-12-29 14:03 UTC (permalink / raw)
  To: emacs-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-02  2:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-29 14:03 toggling diff-auto-refine Thien-Thi Nguyen
2007-12-30 17:03 ` Thien-Thi Nguyen
2008-01-02  2:37 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).