[BUG] Auto correcting in Morphic

Dan Ingalls Dan.Ingalls at disney.com
Tue Jun 13 03:19:18 UTC 2000


>When doing a "print it" of the following
>
>	| a b |
>	a := 3 + 4.
>	a
>
>in a Morphic Workspace, strange things happen. After answering the
>question to remove the unused temp, the result is not printed at all, or
>sometimes somewhere, or Squeak just hangs, uninteruptably ...

OK, folks -

You've been so good.  Can we knock this one off too?

It needs to work whether you use cmd-p or use the print command from the menu.
And it needs to work both for the above correction and the following...

	| a b |
	a := 3 + 4.
	a zort

In this case, you still only select through the last 'a'.  Right now, the compiler ends up looking beyond the 'a' after the correction has been performed and gets an error.  It's likely just the same problem.

Bob seemed to have gotten close in his [suggestion].  Also the method installEditorToReplace: might be a useful tool.  Anyone want to give it a shot?

We never called extent: before in this situation.  Whether we fix it or not, we should definitely eliminate this call except when it is absolutely necessary.

	- Dan






More information about the Squeak-dev mailing list