help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Diff could also show the changes within lines


From: Tom
Subject: Re: Diff could also show the changes within lines
Date: Fri, 5 Oct 2012 18:11:18 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Tom <adatgyujto <at> gmail.com> writes:
> 
>     (diff-auto-refine-mode 1)
> 

Turns out it only refines one hunk (the current) and the others only
if you use hunk navigation commands (diff-auto-refine-mode does this which 
is on by default in Emacs 24). So to refine all hunks automatically,
do this in the diff hook:

  (save-excursion
    (goto-char (point-min))
    (while (not (eobp))
      (diff-hunk-next))))





reply via email to

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