[plt-scheme] hooking add-to-undo-stack

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Apr 27 09:42:25 EDT 2009

At Mon, 27 Apr 2009 19:00:41 +0530, Martin DeMello wrote:
> Am I right in
> that a callback for when an item is added to the undo stack is the
> right starting point?

Do you mean adding something like a `on-undo-addition' method on
`editor<%>' that you can override? That sounds reasonable.

I was thinking more along the lines of having an editor notify its
administrator when a new undo is added, and so on. I guess that amounts
to building a global-undo protocol into the editor, snip, and
administrator classes.



Posted on the users mailing list.