[Ketil Malde <[EMAIL PROTECTED]>, Fri, 24 Feb 2006 15:04:54 +0100]:
> "Stephen J. Turnbull" <[EMAIL PROTECTED]> writes:
> 
> >     Ketil> I'm (of course) not saying you should always do word-based
> >     Ketil> diffs, only for formats where line-based diffs work poorly.
> 
> > How is darcs going to know?  I suppose you could teach it, but what's
> > the interface going to be?
> 
> Umm...well, either it could select based on file type, or it could be
> a project-wide setting, or both.  Theoretically, it could be an
> option, but I think in general, you would choose a mode based on the
> file contents.

But in literate programming you freely mix program text (where lines
would be appropriate) and (typically TeX-based) descriptive text in
one and the same file (where, presumably, you want to operate on
words).  There are other cases where you mix text written in different
languages, which may require different treatment; mmm-mode
<http://sourceforge.net/projects/mmm-mode/> is a way of supporting
that kind of editing in Emacs.

In these cases, a file is much too coarse a granularity for deciding
whether word or line based diffs are appropriate.

Regards,

Albert.

_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to