laurent.orseau
2021-8-3 07:58:48

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


gknauth
2021-8-3 08:37:31

robby
2021-8-3 12:59:10

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).


aowens5189
2021-8-3 15:26:28

FYI the DrRacket stuff starts around 32 minutes


massung
2021-8-3 17:37:19

(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 ..


soegaard2
2021-8-3 17:43:17

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


massung
2021-8-3 17:44:17

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


massung
2021-8-3 17:44:46

though “copy” would be nice :slightly_smiling_face:


laurent.orseau
2021-8-3 18:09:09

Windows?


massung
2021-8-3 18:15:05

On mac atm, but all platforms would be great


laurent.orseau
2021-8-3 19:13:09

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.


laurent.orseau
2021-8-3 19:20:20

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.


niko
2021-8-4 02:56:52

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


niko
2021-8-4 02:58:42

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.



niko
2021-8-4 03:01:09

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


sorawee
2021-8-4 03:02:11

#;


sorawee
2021-8-4 03:02:22

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


sorawee
2021-8-4 03:02:49

You can stack it too:

#;#;(abc) (def)


chansey97
2021-8-4 03:28:49

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.


sorawee
2021-8-4 04:48:03

Probably lispy or something like that. I have it too


laurent.orseau
2021-8-4 06:29:26

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