[plt-scheme] proper undo handling

From: Robby Findler (robby at cs.uchicago.edu)
Date: Wed Apr 16 17:14:47 EDT 2003

I don't think that you need to do that. You should be able to use
frame:standard-menus and all that should be taken care of. Have a look
at the docs for all of the methods that begin with edit-menu:undo and


At Wed, 16 Apr 2003 17:03:21 -0400, "Mike T. Machenry" wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> Hey, I am currently adding undo/redo behavior to my test-suite tool. I wanted
> to run my implementation by everyone. It has been the case at least once (with
> modified? flags of editors) that there was a built in automated way to do what
> I was trying to do. What I am planning to do is this.  
> override my frame:basic method
>   (define/override (edit-menu:undo-callback item event)
>     (send (get-editor) undo)
>     (unless <I still need the undo menu item>
>       <disable the undo menu item>))
> do the same for redo
> override my set-modified method to make the undo and redo menu items enabled
> Does this sound right?
> Thanks,
> -mike

Posted on the users mailing list.