ALLOW.BUTTON.EVENTS and GETREGION ?

3 views
Skip to first unread message

Ron Kaplan

unread,
Dec 21, 2025, 2:46:45 AM12/21/25
to Medley Interlisp core
I have seen a number of calls to GETREGION that are preceded by ALLOW.BUTTON.EVENTS and in at least one case by SPAWN.MOUSE.

Does it ever make sense for mouse buttons to not be allowed if region sweeping is running in the mouse process?

That is, should GETREGION be changed to call ALLOW.BUTTON.EVENTS on entry and not leave that up to the caller?

Larry Masinter

unread,
Dec 24, 2025, 5:50:50 PM12/24/25
to Ron Kaplan, Medley Interlisp core
you don't want to have two different processes each expecting the user to draw out a region (at least not on the same screen).

Once you get into GETREGION, do  you want to allow other processes to run?

I would be hesitant to make changes in the process interaction logic without a better model for what's going on.



--
You received this message because you are subscribed to the Google Groups "Medley Interlisp core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispcore+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lispcore/804ADB8B-A7F9-4933-9DA4-33230F59D897%40post.harvard.edu.

Ron Kaplan

unread,
Dec 25, 2025, 12:03:03 AM12/25/25
to Larry Masinter, Medley Interlisp core
I tried (PROCESS.EVAL 'MOUSE '(GETREGION)) and it seems to work without a preceding call to ALLOW.BUTTON.EVENTS.

So there appears to be no reason for the hardcopy functions to call ALLOW.BUTTON.EVENTS before they call GETREGION.  That was a needless complexity that I will remove. 

Nick Briggs

unread,
Dec 25, 2025, 11:13:14 AM12/25/25
to Ron Kaplan, Larry Masinter, Interlisp core Medley
What would happen if you did a hardcopy, were prompted for a region and let it go into idle, where you can only get out with a mouse click?  I think that’s the kind of scenario that allow.button.events is supposed to mitigate. 

Sent from my iPhone

On Dec 24, 2025, at 21:03, Ron Kaplan <ron.k...@post.harvard.edu> wrote:

I tried (PROCESS.EVAL 'MOUSE '(GETREGION)) and it seems to work without a preceding call to ALLOW.BUTTON.EVENTS.
Reply all
Reply to author
Forward
0 new messages