greghendershott / racket-mode

Emacs major and minor modes for Racket: edit, REPL, check-syntax, debug, profile, packages, and more.
https://www.racket-mode.com/
GNU General Public License v3.0
682 stars 93 forks source link

Values are printed without newlines when `racket-pretty-print` is `nil` #711

Closed usaoc closed 5 months ago

usaoc commented 5 months ago

To reproduce this, run any module with more than one module-level expressions, say

#lang racket/base
1
2

with racket-pretty-print set to nil. The reason is that in

https://github.com/greghendershott/racket-mode/blob/d2cff2b7f210846108875c7eccb1b5ab98bceb74/racket/print.rkt#L17-L36

the non-pretty mode uses print, which doesn’t add a newline.

greghendershott commented 5 months ago

Thanks for the report!

Just merged a fix.