Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SBCL Slime and emacsW32

31 views
Skip to first unread message

An[z]elmus

unread,
Mar 2, 2009, 5:58:48 PM3/2/09
to
Emacs 22.3.1
Last CVS version of Slime
SBCL 1.0.22
Windows XP

CL-USER> (dotimes (i 10) (format t "~A~%" i))
NIL

CL-USER> (loop for i in '(1 2 3 4 5) do (print i))
NIL

Nothing is printed, only the return value NIL.
This does not happen with CLISP.
Trying to set up Slime and emacs and SBCL or CLISP in Windows was
really not without problems.

Pascal J. Bourguignon

unread,
Mar 2, 2009, 9:38:34 PM3/2/09
to

I wonder if adding a (finish-output) would help? Try:

(dotimes (i 10 (finish-output)) (format t "~A~%" i))
(loop :for i :in '(1 2 3 4 5) :do (print i) :finally (finish-output))

--
__Pascal Bourguignon__

D Herring

unread,
Mar 2, 2009, 11:03:47 PM3/2/09
to

sb-sys::serve-event (used by slime) is known to be broken on MSWin.
If you want to help fix it, track down Alastair Bridgewater.

IIRC, this is broken because POSIX (read: real) OSs can call select()
and friends on the same file descriptor used by read() and friends.
MSWin uses one file handle for reading and a separate event handle for
activity callbacks. SBCL was designed for a single file id. Some
hacking required to attach event handles to file handles...

- Daniel

An[z]elmus

unread,
Mar 3, 2009, 5:14:22 AM3/3/09
to
On Tue, 03 Mar 2009 03:38:34 +0100, p...@informatimago.com (Pascal J.
Bourguignon) wrote:
>> Emacs 22.3.1
>> Last CVS version of Slime
>> SBCL 1.0.22
>> Windows XP
>>
>> CL-USER> (dotimes (i 10) (format t "~A~%" i))
>> NIL
>>
>> CL-USER> (loop for i in '(1 2 3 4 5) do (print i))
>> NIL
>>
>> Nothing is printed, only the return value NIL.

>I wonder if adding a (finish-output) would help? Try:


>
>(dotimes (i 10 (finish-output)) (format t "~A~%" i))
>(loop :for i :in '(1 2 3 4 5) :do (print i) :finally (finish-output))

No, unfortunetly it doesn't help, still no side-effects-print-format
visible, only the value returned.

An[z]elmus

unread,
Mar 3, 2009, 5:30:47 AM3/3/09
to
On Mon, 02 Mar 2009 23:03:47 -0500, D Herring
<dher...@at.tentpost.dot.com> wrote:
>> Emacs 22.3.1
>> Last CVS version of Slime
>> SBCL 1.0.22
>> Windows XP
>>
>> CL-USER> (dotimes (i 10) (format t "~A~%" i))
>> NIL
>>
>> CL-USER> (loop for i in '(1 2 3 4 5) do (print i))
>> NIL
>>
>> Nothing is printed, only the return value NIL.
>
>sb-sys::serve-event (used by slime) is known to be broken on MSWin.
>If you want to help fix it, track down Alastair Bridgewater.

All I found so far I is an e-mail address from a WEB page last updated
on june 2004.

D Herring

unread,
Mar 3, 2009, 7:51:44 AM3/3/09
to

An[z]elmus

unread,
Mar 3, 2009, 9:16:48 AM3/3/09
to
On Mon, 02 Mar 2009 23:58:48 +0100, "An[z]elmus"
<som...@somewhere.org> wrote:

>Emacs 22.3.1

I apologize, in the subject I mentioned erroneously EmacsW32. Infact I
meant just Emacs for Windows, which what I am using.

0 new messages