From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: Re: Diff could also show the changes within lines Date: Thu, 15 Nov 2012 12:29:49 +0100 Organization: Sebastien Vauban Message-ID: <808va3p0ia.fsf@somewhere.org> References: <87txu9arc8.fsf@gmail.com> <80d2zlvnos.fsf@somewhere.org> <80vcd8l0h4.fsf@somewhere.org> <80zk2j3kkf.fsf@somewhere.org> <80obizp4fv.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352979017 9471 80.91.229.3 (15 Nov 2012 11:30:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2012 11:30:17 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Thu Nov 15 12:30:28 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TYxeK-00049V-2h for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Nov 2012 12:30:24 +0100 Original-Received: from localhost ([::1]:42589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYxe9-0005NU-Fy for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Nov 2012 06:30:13 -0500 Original-Received: by 10.180.97.162 with SMTP id eb2mr6558174wib.0.1352978989182; Thu, 15 Nov 2012 03:29:49 -0800 (PST) Original-Path: usenet.stanford.edu!u2no4136189qal.0!news-out.google.com!ha8ni271736wib.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Injection-Info: mx04.eternal-september.org; posting-host="368fa3c7dc5c1bbe516391bd65bd1ab2"; logging-data="32724"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX1/9lGsSAvEoOsJwNlM2k0Lm" User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (windows-nt) X-Archive: encrypt Cancel-Lock: sha1:XmnZ6I75Ag4x2VI1Dl3YMILVbk8= sha1:m5kV0Ytuq9+Fes7tB0zmXWR/8EU= X-Url: Under construction... Original-Xref: usenet.stanford.edu gnu.emacs.help:195382 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:87705 Archived-At: Tom wrote: > Sebastien Vauban writes: >> >> Going to the beginning of the diff buffer and hitting TAB, does indeed >> moves over every hunk, in turn, and refines the differences at the same >> time. > > My function does the same, so I can't explain why it does not work for you > when you call it from M-x. That's very weird, indeed. > I guess you also use Emacs 24, so it's not about an old emacs version > behaving differently. Yep, sort of future Emacs 24.3, that is: GNU Emacs 24.2.50.1 (i386-mingw-nt5.1.2600) of 2012-10-22 on DANI-PC >> BTW, how do you explain that your cursor is not at the end of the buffer, >> in your case, after the refine process? > > I use save-excursion in the function which puts the cursor back to where it > was before the function was called. I had overlooked it. Of course. > I don't know why it is at the end of the buffer for you. There are some > emacs gurus on this list. Hopefully some of them will chime in and helps you > to solve this mistery, because I'm out of ideas. Thanks for your help so far... Last thing: can you post your complete chunk of code regarding this? I mean with your additional check which calls the automatic highlighting of hunks only if the diff is below a certain size? Thanks a lot... Best regards, Seb -- Sebastien Vauban