From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.devel Subject: Re: ediff feature request: diffing line by line Date: Sun, 17 Mar 2002 00:04:35 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: <87bsdof724.fsf@gnu.org> References: <200203161743.MAA02813@sbcs.cs.sunysb.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016319859 31172 127.0.0.1 (16 Mar 2002 23:04:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 16 Mar 2002 23:04:19 +0000 (UTC) Cc: traverso@dm.unipi.it, keichwa@gmx.net, emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16mNDn-00086g-00 for ; Sun, 17 Mar 2002 00:04:19 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16mNHL-0008DS-00 for ; Sun, 17 Mar 2002 00:07:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16mNCh-0001Dk-00; Sat, 16 Mar 2002 18:03:11 -0500 Original-Received: from relay03.cablecom.net ([62.2.33.103]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16mNC4-0001Cv-00 for ; Sat, 16 Mar 2002 18:02:32 -0500 Original-Received: from mail.swissonline.ch (mail.swissonline.ch [62.2.32.83]) by relay03.cablecom.net (8.11.6/8.11.4/SOL/AWF/MXRELAY/06072001) with ESMTP id g2GN2Uo24456; Sun, 17 Mar 2002 00:02:30 +0100 (CET) Original-Received: from confusibombus (dclient217-162-125-80.hispeed.ch [217.162.125.80]) by mail.swissonline.ch (8.11.4/8.11.4/MSOL-2.30/21-Dec-2000) with ESMTP id g2GN2TY11643; Sun, 17 Mar 2002 00:02:29 +0100 (MET) Original-Received: from alex by confusibombus with local (Exim 3.12 #1 (Debian)) id 16mNE3-0000BP-00; Sun, 17 Mar 2002 00:04:35 +0100 Original-To: kifer@cs.sunysb.edu (Michael Kifer) X-Face: ^BC$`[IcggstLPyen&dqF+b2'zyK#r.mU*'Nms}@&4zw%SJ#5!/7SMVjBS7'lb;QK)|IPU5U'o1'522W4TyzB3Ab*IBo^iw]l4|kUbdZuUDO6=Um-.4IzhNiV'B"@K#jy_(wW|Zbk[34flKY^|PrQ?$u2\fKg^]AY>wOX#H32i In-Reply-To: <200203161743.MAA02813@sbcs.cs.sunysb.edu> (kifer@cs.sunysb.edu's message of "Sat, 16 Mar 2002 12:43:09 -0500") Original-Lines: 33 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:1972 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1972 kifer@cs.sunysb.edu (Michael Kifer) writes: > Karl> This basically means a diff is required that compares line > Karl> by line and that allows to say "next word" from version A or > Karl> "rest of line" from version B is wanted. > > Ediff is designed to parse the output of diff and then present it in > different ways. What you are proposing is a kind of "incremental diff", if I > understand it correctly. I think it would require a major generalization of > the existing code to do that. I'm not sure, as I understand it, all Karl is saying that we would like to see more commands to act upon the differences -- copy the replace the first word of chunk A with the first word of chunk B and show me a new diff output. The diff output -- the underlying calls to diff and the processing of the output, and the ediff display need not be changed. I assume that is biggest part of the code... (without looking at it). Some of what Carlo Traverso wishes for could be implemented by other people by writing some sort of "filters" -- functions that get run when the files are loaded and not yet saved as temporary files. The diffing, parsing, mangling, displaying, etc. remains as it is. But authors of a specialized ocr-ediff could then write a collection of functions (plus relevant customization variables) which transform (normalize, canonicalize, whatever) the text of files, before ediff gets started. This might be nice to have in ediff itself (some sort of hook) but is not really required. Perhaps Carlo can tell us wether that would be good enough? Alex. -- http://www.emacswiki.org/ _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel