[slime-devel] reader macros get EOF

Helmut Eller e9626484 at stud3.tuwien.ac.at
Mon Dec 13 19:08:36 UTC 2004


"Pascal J.Bourguignon" <pjb at informatimago.com> writes:

> Typing: 
>
>    #! hello RET
>
> returns:
>
>     " hello
>     "
>
> instead of waiting for further input.
>
> With clisp\xterm this works as expected:

Yes, that's true.  The reason is that RET sends a command like
`evaluate the string after the prompt' to Lisp.  The string is
converted to stream and the string-stream ends after the newline.

You could explicitly read from standard-input if you call (read).
Or you could press C-j instead of RET to insert a newline.

Usually SLIME doesn't wait for input from standard-input but for input
from the socket to Emacs.  Input is read from standard-input only if
do so yourself.  The REPL buffer will then show a [read] indicator.
One side effect of this is that the repl appears to be work even if
the debugger is active.  The other nice thing is that the
*inferior-lisp* isn't blocked when the fd-handler communication style
is used.

So, all this will probably not be changed until somebody finds an
elegant way to keep the REPL and the debugger active at the same time.

Helmut.




More information about the slime-devel mailing list