[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, 15 Nov 2012 19:17:37 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (windows-nt) |
Hi Tom,
Tom wrote:
> Sebastien Vauban <wxhgmqzgwmuf@...> writes:
>> FYI, have a look at http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12894.
>
> That explains it. I'm on Emacs 24.1 and it does not have this
> scheduling code, so that's why it works for me. I didn't think
> they changed this recently.
>
> Anyway, you can try calling diff-refine-hunk explicitly after
> diff-hunk-next then:
>
> (condition-case nil
> (save-excursion
> (goto-char (point-min))
> (while (not (eobp))
> (diff-hunk-next)
> (diff-refine-hunk)))
> (error nil)))
>
> I can't try it, because I use 24.1, but it may work.
I wasn't sure how to adapt the code. Thanks for trying...
And the results of the jury are:
- it works for the refining of *all* hunks
- it does not work wrt the position of the cursor, that is it's at the end of
the buffer...
Thanks for solving already half of the problem!
Best regards,
Seb
--
Sebastien Vauban
- Re: Diff could also show the changes within lines, (continued)
- Re: Diff could also show the changes within lines, Tom, 2012/11/15
- Message not available
- Re: Diff could also show the changes within lines, Sebastien Vauban, 2012/11/15
- Re: Diff could also show the changes within lines, Tom, 2012/11/15
- Message not available
- Re: Diff could also show the changes within lines, Sebastien Vauban, 2012/11/15
- Re: Diff could also show the changes within lines, Tom, 2012/11/15
- Message not available
- Re: Diff could also show the changes within lines, Sebastien Vauban, 2012/11/15
- Re: Diff could also show the changes within lines, Tom, 2012/11/15
- Re: Diff could also show the changes within lines, Stefan Monnier, 2012/11/16
- Re: Diff could also show the changes within lines, Tom, 2012/11/16
- Message not available
- Re: Diff could also show the changes within lines, Stefan Monnier, 2012/11/19
- Message not available
- Re: Diff could also show the changes within lines,
Sebastien Vauban <=
- Re: Diff could also show the changes within lines, Tom, 2012/11/15
- Message not available
- Re: Diff could also show the changes within lines, Sebastien Vauban, 2012/11/15
- Re: Diff could also show the changes within lines, Tom, 2012/11/16
- Re: Diff could also show the changes within lines, Sebastien Vauban, 2012/11/19
- Re: Diff could also show the changes within lines, Tom, 2012/11/19