Re: Behavior of Scheme REPL
Sean Whitton <[email protected]>
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
Jakub T. Jankiewicz [17/Aug 8:34pm +02] wrote: > 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. I think if someone wants to fix this we would take the patch. -- Sean Whitton