7

I am running Emacs25 with Geiser (latest version from MELPA, 20180128.1821) and Guile (version 2.2, Debian package). So far it works fine, but when I evaluate a sexp, it will print the result to Emacs' echo area instead of in the REPL buffer. Is there a way to change this behavior? I'd like to be able to scroll through long output, copy parts of it, etc.

I tried looking into the configuration menus, but found nothing that seemed to be related to that.

I'd appreciate any help with this.

  • 1
    1. How are you evaluating the sexp? 2. You can print the result to the buffer you want - see (elisp) node Output Streams. Or you can insert it into a buffer using insert. – Drew Jan 29 '18 at 16:51
  • I evaluate with C-x C-e (which by default is bound to "eval sexp before point" in Geiser). It seems that the natural thing to do would be to send the output to the REPL, and not to some other buffer. – Jay Jan 29 '18 at 21:35
  • 1
    What's "the REPL buffer"? Perhaps you mean something like buffer *scratch*. In any case, to insert the result in the current buffer (where the sexp is that you evaluate), just use C-u C-x C-e. C-h k C-x C-e tells you this. – Drew Jan 29 '18 at 21:42
  • 1
    By REPL buffer I mean the buffer where Geiser runs the Guile REPL (the usual way is to have one buffer with the code and one where the REPL is; the second is interactive). – Jay Jan 29 '18 at 21:55
  • 1
    I have the same problem. Any solution? – ofenerci May 1 '19 at 22:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.