From: Peter Keller <psilord@merlin.cs.wisc.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: SLIME and CTRL-D
Date: 08 Apr 2010 20:29:09 GMT [thread overview]
Message-ID: <4bbe3c95$0$9896$80265adb@spool.cs.wisc.edu> (raw)
In-Reply-To: m2mxxd3g75.fsf@common-lisp.net
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
next prev parent reply other threads:[~2010-04-08 20:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 18:22 SLIME and CTRL-D Peter Keller
2010-04-08 19:19 ` Helmut Eller
2010-04-08 20:29 ` Peter Keller [this message]
2010-04-08 20:54 ` Helmut Eller
2010-04-08 23:40 ` Peter Keller
2010-04-09 12:07 ` Jeff Clough
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='4bbe3c95$0$9896$80265adb@spool.cs.wisc.edu' \
--to=psilord@merlin.cs.wisc.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).