[slime-devel] Need automatric force-output for slime-repl
Helmut Eller
e9626484 at stud3.tuwien.ac.at
Mon Dec 13 19:40:27 UTC 2004
Lynn Quam <quam at ai.sri.com> writes:
> Is it possible to cause force-output to automatically occur on the
> repl-buffer. It is annoying that various debugging printout must be
> explicitly followed by a force-output in order for it to appear in a
> timely fashion.
Not easily.
You could disable buffering altogether with something like:
(setf (lisp::fd-stream-buffering *standard-output*) :none)
or in your ~/.swank.lisp:
(swank::add-hook swank::*new-connection-hook*
(lambda (c) (setf (lisp::fd-stream-buffering
(swank::connection.dedicated-output c))
:none)))
If CMUCL were interrupt-safe or if it had preemptive threads you could
install a timer which periodically flushes the standard streams. But,
ala, it isn't, so the timer variant is rather dangerous.
Helmut.
More information about the slime-devel
mailing list