[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Ev2 as a move-aware editor

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 26 Jun 2013 13:03:05 +0100

Daniel Shahaf <danielsh_at_elego.de> writes:

> First sketch:
>
> move(/A/B, /X/Y/Z/B)
> move(/M/N, /A/B/C/N)
> move(/X/Y, /M/N/O/Y)
> rotate(/A, /M/N/O, /X, /A/B/C, /M, /X/Y/Z)
>
> The final rotate() call looks tricky: it moves something to /M and
> something to /M/N/O, so the former move must be handled first
> (regardless of which target appears first in the cyclic list of
> arguments).

The moves look like a problem before we get to the rotate. If the
receiver acts on the moves as they are received then after

     move(/A/B, /X/Y/Z/B)

/A/B/C is already /X/Y/Z/B/C so the second move is

     move(/M/N, /X/Y/Z/B/C/N)

and now /M/N/O is already /X/Y/Z/B/C/N/O so the third move is

    move(/X/Y, /X/Y/Z/B/C/N/O/Y)

which is impossible.

I can't see any way to do the 9-node change without using temporaries.

-- 
Philip Martin | Subversion Committer
WANdisco | Non-Stop Data
www.wandisco.com
Received on 2013-06-26 14:03:42 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.