
That’s a good point. I wonder if it’s possible to make a test/stress case for this. Maybe the script would generate a big bunch of events, while DrRacket is doing so busy work


If you wanted to test something, maybe the script should check that (equal? (current-thread) (eventspace-handler-thread (current-eventspace)))
or perhaps something else instead of (eventspace-handler-thread (current-eventspace))
that is guaranteed to be the right thread (because you stash the drr eventspace earlier).

FYI the DrRacket stuff starts around 32 minutes

(On mac) — If I plot to the DrRacket REPL, how can I copy/paste the generated image? I can’t seem to copy it. I can highlight it, r-click Copy (or cmd-c), but pasting is just the text .
.

@massung Can you right click on the snip? I think, there is a “save as image” menu item.

ah, i see it now (it was “scroll for more menu items”). ty

though “copy” would be nice :slightly_smiling_face:

Windows?

On mac atm, but all platforms would be great

It should be feasible to write a quickscript for this, but it would be somewhat hacky: click on a script menu item, then click on the snip. It would be within the context menu for sure.

Two tricky bits: configure the clipboard to accept images, and find the snip based on the click. Or maybe first select the plot or put the cursor before or after the plot.

Is there a way to comment out an s-expression?

My current technique:
• isolate the s-expression on its own lines • select it with shift alt-right • go to the menus and find “comment out with semicolons” This works but is an awful lot of steps.


I had a vague memory of some syntax like this, back from my 6.001 days. :slightly_smiling_face:

#;

E.g., #;abc
or #;(abc def)

You can stack it too:
#;#;(abc)
(def)

I found that my editor (emacs) can automatically create a new line for a s-exp when just using ;
. I don’t know which plug-in do this effect though, it’s really useful in most scenes.

Probably lispy
or something like that. I have it too

What does it do exactly? I didn’t get it