Christian Brabandt wrote:

> On Do, 14 Jun 2012, Bram Moolenaar wrote:
> 
> > My definition of "valid" is something that diff would produce.  Can you
> > show me two input files for which diff produces an ed style diff with
> > adjecent blocks?
> 
> Seems, the more widely used diffs, always merge adjacent hunks. The only 
> reference I found to that was the GNU manual statingÄ…:
>     "In this case, diff normally shifts the hunk's boundaries when this 
>     merges adjacent hunks"
> 
> But according to the robustness principle ("be conservative in what you 
> do, be liberal in what you accept") and since it's still perfectly valid 
> input and patch(1) happily accepts it, shouldn't Vim also be able to 
> handle such a diff? 
> 
> Ä…) 
> http://www.gnu.org/software/diffutils/manual/html_node/diff-Performance.html

The problem is that when diff blocks are allowed to touch each other
then updates for changes become tricky.  Not to mention bugs that will
be uncovered.  Thus I'm not against it, just careful about adding a
feature for few users that will cause problems for many more users.

-- 
A day without sunshine is like, well, night.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui