From xemacs-m  Sun Feb  2 10:39:48 1997
Received: from wmperry.in.aventail.com (wmperry@wmperry.oz.net [207.13.185.53])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id KAA13571
	for <xemacs-beta@xemacs.org>; Sun, 2 Feb 1997 10:39:46 -0600 (CST)
Received: (from wmperry@localhost) by wmperry.in.aventail.com (8.7.6/8.7.3) id IAA00413; Sun, 2 Feb 1997 08:44:25 -0800
Date: Sun, 2 Feb 1997 08:44:25 -0800
Message-Id: <199702021644.IAA00413@wmperry.in.aventail.com>
From: "William M. Perry" <wmperry@aventail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Kyle Jones <kyle_jones@wonderworks.com>
Cc: xemacs-beta@xemacs.org
Subject: Re: Undo!
In-Reply-To: <QQcbed05534.199702021558@crystal.WonderWorks.COM>
References: <199702010502.AAA03861@localhost.interport.net>
	<kign2tozwpd.fsf@jagor.srce.hr>
	<QQcbcr19912.199702020628@crystal.WonderWorks.COM>
	<199702020758.CAA04094@localhost.interport.net>
	<kig3evfqzvm.fsf@jagor.srce.hr>
	<QQcbed05534.199702021558@crystal.WonderWorks.COM>
Errors-to: wmperry@aventail.com
Reply-to: wmperry@aventail.com
X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7</SYF`{vYQ(&RI1&EiH[FvT;J}@f!4kfz
 x_!Y#=y{Uuj9GvUi=cPuajQ(Z42R[wE@{G,sn$qGr5g/wnb*"*ktI+,CD}1Z'wxrM2ag-r0p5I6\nA
 [WJopW_J.WY;

Kyle Jones writes:
>Hrvoje Niksic writes:
> > Peter Pezaris <pez@dwwc.com> writes:
> > 
> > > change.  You hit undo 47 times to get back to that point, and change
> > > the thing that needs to get changed.  Wouldn't it be nice to hit
> > > "redo" 47 times to get back to where you really want to be?
> > 
> > I don't think any redo mechanism works that way.  Once you actually
> > change anything, the redo possibility is lost.
> > 
> > The way redo works, e.g. in `joe' editor is that you can press undo n
> > times, then move around all you want, and then press redo m times (m
> > <= n) to undo the undo itself.
> > 
> > In Emacs when you start moving around, the undo-s are recorded as just
> > a set of changes to the buffer, which is often annoying.
> > 
>
>Now THAT doesn't seem hard to do at all, and in a given editing
>situation I have no trouble at all figuring out what the editor
>going to do.
>
>Given the way Emacs undo is implemented, the only changes that
>would be required are
>
>   a) to not automatically move the undo record pointer back to
>      the top of the stack until a buffer
>      modification occurs,
>   b) to keep a record of where point was after the last
>      undo/redo in case the user wants to continue, and
>   c) to add a redo command.

  That sounds like a volunteer to me. :)

-Bill P.

