[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: Sebastien Vauban
Subject: Re: Diff could also show the changes within lines
Date: Thu, 20 Mar 2014 14:31:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)


Michael Heerdegen wrote:
> My guess is that diff-mode-hook is not a good place to push your
> function to.  Maybe it is called too early, and the effect is somehow
> reverted later.  You may try something like
> (advice-add
>  'vc-diff :after
>  (lambda (&rest _)
>    (my--diff-make-fine-diffs-if-necessary)))
> I wonder if that work's.

That worked, as you already know.

However, as the above code does not seem to run on slightly older Emacs
versions, I tried to convert it to:

--8<---------------cut here---------------start------------->8---
  (defadvice vc-diff (after leuven-vc-diff activate)
    "Push the auto-refine function after `vc-diff'."
--8<---------------cut here---------------end--------------->8---

... which does not work.

What am I missing?

Best regards,

Sebastien Vauban

reply via email to

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