[slime-devel] Need automatric force-output for slime-repl

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.

Lynn Quam <quam@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.
participants (2)
-
Helmut Eller
-
Lynn Quam