[net.micro.mac] Possible ROM bug in TESetSelect

duc@wjh12.HARVARD.EDU (Dan Costin) (09/25/86)

I'm having a problem with TextEdit routines that I haven't seen
anyone complain about, but some of you might have had at some
point.  The problem arises on Mac+'s, but not on Mac 512K's !!!
(Is it a bug in the ROM?  Are there patches?)

In my program I have an edit record in a dialog window.  I handle
all events to the dialog, so when the user points to a spot in the
edit box I can select the line he's pointing to (like the minifinder).
So what I do is immediately post a mouse-up event and call TEClick.
This gives me the location in the text that the user pointed to.
I then select the whole line of text that includes the newly created 
insertion point.

When I call TESetSelect, however, the text sometimes scrolls (and
sometimes does not - I can't get an extremely reproducible example.
It's just that it happens at least 1 in 5 times).  Additionally,
this only seems to happen when the edit record is larger than about 10K
or so (no, it's never larger than 32K). My question
is whether anyone has seen this scroll happen, and if anyone knows
why TESetSelect would ever want to scroll the screen.  While trapping
toolbox calls I noticed that there are calls to ScrollRect.  Why?

Any answers would be appreciated.

-dan costin