sturgman
2019-8-15 13:52:58

Hello all! I am going through https://docs.racket-lang.org/quick/index.html in both DrRacket and emacs with racket-mode and noticed that the output differs on the command (rainbow (square 5))


sturgman
2019-8-15 13:53:59

In DrRacket I obviously get the same as the tutorial… but in racket-mode I get the following:


sturgman
2019-8-15 13:54:22

My question is… is this correct output? Or should I consider this a bug in racket-mode?


soegaard2
2019-8-15 13:54:50

Not a bug.


soegaard2
2019-8-15 13:55:01

The output of rainbow is a list of picts.


soegaard2
2019-8-15 13:55:18

How lists are printed are decided by the editor.


soegaard2
2019-8-15 13:55:39

If you want one image with squares next to each other,


sturgman
2019-8-15 13:55:47

hc-append


sturgman
2019-8-15 13:55:49

?


soegaard2
2019-8-15 13:55:54

yes!


sturgman
2019-8-15 13:56:17

Great… still that is an awkward way to display a list of pics!


sturgman
2019-8-15 13:56:27

Thanks for the help!


soegaard2
2019-8-15 13:56:51

True. I don’t know whether it is a choice made by Greg - or whether there is a limitation in Emacs.


sturgman
2019-8-15 13:57:27

Alright… I filled an issue on the repository… it is nothing crucial, but it is unexpected if someone is following the tutorial….


sturgman
2019-8-15 13:57:49

Thanks again for the quick assist!


soegaard2
2019-8-15 13:57:56

Np.


sydney.lambda
2019-8-16 01:55:08

@philip.mcgrath thanks for confirming :)