winny
2020-11-27 18:42:30

With racket-mode I can develop stuff without thrashing on my 512 MiB pentium M machine. DrRacket does work, but eats most of the physical memory. Emacs with racket-mode uses about half instead.


laurent.orseau
2020-11-27 18:56:22

We need a command line version of DrRacket!


jjsimpso
2020-11-27 22:59:06

Does the racket-mode REPL display messages from the current logger? I don’t see why it wouldn’t, but I don’t see log-error print there when I run emacs with ‘PLTSTDOUT=error emacs’. I verified with getenv that PLTSTDOUT is set to “error”. It could be that I’m misunderstanding the way loggers work, but I do see the log-error messages when I run my code outside of emacs.


greg
2020-11-28 03:16:00

@jjsimpso There’s a dedicated *Racket Logger* buffer for that. See: https://www.racket-mode.com/#racket_002dlogger


greg
2020-11-28 03:18:31

In that buffer press l to add a topic and a level. If there’s a set of levels and topics you often want, you can set the Emacs customization variable racket-logger-config. Help for that is linked from that page I linked to above.


jjsimpso
2020-11-28 04:54:17

Thanks greg. I saw the Logger buffer.


jjsimpso
2020-11-28 04:55:24

I was wondering if there was a way to include the log messages with the stdout and stderr printed in the REPL. If there isn’t I can work around it.


jjsimpso
2020-11-28 04:57:23

I thought that using the logger might be helpful for selectively enabling debug output in my program. Instead, I may just roll something simple of my own.