Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to undo > 1 in Squeak

How do you undo in squeak more than one time? I am using coglinux-VM, Squeak-Image 4.5 with Squeak source version 41.

I wrote some test code in my workspace window and want to undo more steps, but Squeak won't do it.

like image 666
bartak Avatar asked Sep 10 '14 15:09

bartak


1 Answers

Support for multiple undo has been dropped in 2009 when integrating the TextEditor from Cuis. This is findable in Morphic package history (or at http://source.squeak.org/trunk/Morphic-ar.149.diff)

Cuis is a fork of Squeak aiming at a simpler code in general, and particularly a simpler Morphic (all code must be understandable by a single programmer but yet remain powerfull), See http://www.jvuletich.org/Cuis/Index.html.

It sounds like main usage of the TextEditor is in the Browser, and that the methods are short enough to not really require a multiple undo... At least there were no complaints until then, and I guess the drop was un-noticed. It is even possible that it might have been accidental rather than deliberate...

However, the object used for storing multiple undo history is still there (EditCommand) and there is even a Preferences (multipleTextUndo) that is currently unsent but could be restored...

It would be a good exercize to see how hard/easy restoring this feature would be. A good start is tracking usage of EditCommand and multipleTextUndo in an old version of Morphic.

like image 56
aka.nice Avatar answered Nov 21 '22 14:11

aka.nice