[Top][All Lists]

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

Re: Diff could also show the changes within lines

From: chandan r
Subject: Re: Diff could also show the changes within lines
Date: Fri, 05 Oct 2012 20:39:11 +0530
User-agent: mu4e; emacs 24.2.1

Tom <> writes:

> When doing diffs it often occurs to me the diff output could be
> more readable if it showed the actual changes within lines.
> Something like this (I mean the concept, the actual implemenation shown
> may not be the best output which can be achieved), so you don't have to
> search for the changes within the line:
> tool/1266114#1266114
> It doesn't even necessarily need support from the external diff tool,
> because diffs are usually not huge, so the highlighting of the changes
> could be done in lisp by parsing the diff output.
> Has anyone tried improving diff like this? Is there a package which does 
> this?

Add the following to your Emacs init file:

(add-hook 'diff-mode-hook
          (lambda () (diff-auto-refine-mode 1)))

reply via email to

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