From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Kifer Newsgroups: gmane.emacs.devel Subject: Re: Feature request Date: Thu, 07 Nov 2013 18:55:49 -0500 Message-ID: <527C2885.6070204@stonybrook.edu> References: <2a9210e2f5054eb494eb1281f0f71f4d@HUBCAS1.cs.stonybrook.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1383895047 3431 80.91.229.3 (8 Nov 2013 07:17:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Nov 2013 07:17:27 +0000 (UTC) Cc: Stefan Monnier , Emacs developers To: John Yates , Matzi Kratzi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 08 08:17:31 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VegJt-0003p9-H1 for ged-emacs-devel@m.gmane.org; Fri, 08 Nov 2013 08:17:29 +0100 Original-Received: from localhost ([::1]:44086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VegJt-0008Pl-3N for ged-emacs-devel@m.gmane.org; Fri, 08 Nov 2013 02:17:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeZQj-0002qD-Ir for emacs-devel@gnu.org; Thu, 07 Nov 2013 18:56:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VeZQc-0004yj-9h for emacs-devel@gnu.org; Thu, 07 Nov 2013 18:56:05 -0500 Original-Received: from mail-qa0-f52.google.com ([209.85.216.52]:44119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeZQc-0004yG-56 for emacs-devel@gnu.org; Thu, 07 Nov 2013 18:55:58 -0500 Original-Received: by mail-qa0-f52.google.com with SMTP id ii20so1107996qab.18 for ; Thu, 07 Nov 2013 15:55:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=KuqspXGfZ5i5HmCcNoeshoyVtHU/0S8YeXiPNOMMQEQ=; b=cny4hY5uBQZCmJCszpPNrn4i6ueFCCm4PJLs9UL86knkkWKSX+yKdaLXVN8uCDnyQB Cfkw2o4f7CNPFlTtO51mRXFBViSBcl8NgGSKLUYGTkgxBEj4giEZXmUU6lEvyjJj4+t0 CUlMMpYgmdXEpbO05GjyHlqv/bGXdf1l2Hwr4X2gPl+zgQRA/rWIz5Tnl210VgJzOzY5 nxJURyPP9oNwiyFZ6UVvFjSpJTzWkv6pW+Q5xfJItBejAPblmNCtHp6t7TNrQEzVvvdf VqA7XS36FZhunQ/vvAKom1kuTthF78iYRLJNME3VGjkRRBxpxdyrpDEu0ASLjdRn2Gu8 YGjw== X-Gm-Message-State: ALoCoQlFM6VOEyiyBhh+O851fDSgh99D8DV3YRfdw/s1gibxdq6HE11D0q1e3mmzVMPxQ0ecQF8p X-Received: by 10.224.115.81 with SMTP id h17mr19364553qaq.64.1383868551233; Thu, 07 Nov 2013 15:55:51 -0800 (PST) Original-Received: from [192.168.1.106] (ool-18bf47c9.dyn.optonline.net. [24.191.71.201]) by mx.google.com with ESMTPSA id x10sm15612419qas.5.2013.11.07.15.55.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Nov 2013 15:55:50 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: <2a9210e2f5054eb494eb1281f0f71f4d@HUBCAS1.cs.stonybrook.edu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.216.52 X-Mailman-Approved-At: Fri, 08 Nov 2013 02:17:26 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165063 Archived-At:
On 11/07/2013 04:18 PM, John Yates wrote:
What you are describing is a poor-man's form of patience diff.  Google it if unfamiliar.

Attached is a just slightly tweaked version I stole from bzr.  I have my emacs ediff-compare-program set to ~/bin/pdiff.

Being a python script it potentially may be a bit slow (though I have never had a problem).  An alternative I saw on stackoverlow would be to use git:

$ git diff --no-index --patience file1 file2

/john


Good that the solution is simple. I believe that deficiencies in the diff algorithm should be solved by a better diff algorithm, not by a graphical interface (which ediff is).

--

       --- michael