help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SLIME and CTRL-D


From: Peter Keller
Subject: Re: SLIME and CTRL-D
Date: Tue, 04 May 2010 15:44:16 -0000
User-agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/2.6.18-164.11.1.el5 (i686))

Helmut Eller <eller.helmut@gmail.com> wrote:
> * Peter Keller [2010-04-08 20:22+0200] writes:
> 
>> Hello,
>>
>> I use slime with sbcl on linux and in general it works fine.
>>
>> My question is: in the raw sbcl repl (say starting sbcl from the
>> command line) I can do ^D to signal the END-OF-FILE condition for
>> something reading *standard-input*.  SLIME doesn't seem to understand
>> this. How can I do the equivalent of ^D when using the SLIME repl for
>> sbcl?
> 
> Probably C-u RET.

in a simple test case in slime's repl:

(handle-case (read) (end-of-file () (format t "got eof~%")))

It works just fine. I have yet to test it in my actual application, but
I don't see any reason why it wouldn't work given the test.

Another question is, why C-u RET? I never would have though that did what
it did here. Why does it work?

-pete


reply via email to

[Prev in Thread] Current Thread [Next in Thread]