Behavior of Scheme REPL
"Jakub T. Jankiewicz" <[email protected]>
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <20260817203456.4f5c7912@jcubic> |
I've noticed that that cmuscheme that is shipped with Emacs prints multiple prompts when you evaluate Scheme code with C-x C-e This is consistent with all Scheme interpreter that I've checked. Guile3.0, Gambit, Chicken and my own LIPS Scheme that use Node.js own Readline implementation. To see the effect: emacs -Q Write an evaluate: (require 'cmuscheme) (run-scheme "/usr/bin/guile3.0") C-x 2 C-x o ;; split and switch to other window Create a new file foo.scm and write into it: C-x C-f foo.scm Write: (defined foo 10) Press C-x C-e ;; to evaluate it The effect double prompt: scheme@(guile-user)> scheme@(guile-user)> There are as many prompts as the newline in the code. I think that this is a bug, but this behavior is like forever in Emacs. So I wanted to ask if this is intended. IMHO it would be better if the code is echoed back into the scheme shell, or at least a newline is added between the prompts. so the output from the process appear between the prompts like it appear when running it from normal terminal emulator. -- Jakub T. Jankiewicz, Open-source Developer & Wikipedia Editor Official Website: https://jakub.jankiewicz.org Educational Project: https://wikizeit.edu.pl