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.
"An[z]elmus" <some...@somewhere.org> writes: > 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.
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))
An[z]elmus 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. > This does not happen with CLISP. > Trying to set up Slime and emacs and SBCL or CLISP in Windows was > really not without problems.
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...
An[z]elmus wrote: > On Mon, 02 Mar 2009 23:03:47 -0500, D Herring > <dherr...@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.