unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Schroeder <alex@gnu.org>
Cc: traverso@dm.unipi.it, keichwa@gmx.net, emacs-devel@gnu.org
Subject: Re: ediff feature request: diffing line by line
Date: Sun, 17 Mar 2002 00:04:35 +0100	[thread overview]
Message-ID: <87bsdof724.fsf@gnu.org> (raw)
In-Reply-To: <200203161743.MAA02813@sbcs.cs.sunysb.edu> (kifer@cs.sunysb.edu's message of "Sat, 16 Mar 2002 12:43:09 -0500")

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


  reply	other threads:[~2002-03-16 23:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-16 13:54 ediff feature request: diffing line by line Karl Eichwalder
2002-03-16 16:27 ` Carlo Traverso
2002-03-16 17:43   ` Michael Kifer
2002-03-16 23:04     ` Alex Schroeder [this message]
2002-03-17  4:04       ` Karl Eichwalder
2002-03-17 15:40         ` Andreas Schwab
2002-03-17 16:26           ` Carlo Traverso
2002-03-17 18:37             ` Michael Kifer
2002-03-17 20:41               ` Carlo Traverso
2002-03-17 19:20 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bsdof724.fsf@gnu.org \
    --to=alex@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=keichwa@gmx.net \
    --cc=traverso@dm.unipi.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).