On Wed, Feb 3, 2010 at 7:42 AM, Nathan Bird nathan@acceleration.net wrote:
It would be pretty cool to do something like this: (with-open-stream (str (swank:make-emacs-buffer-stream "*app-logger*")) (princ "Woot!"))
I'm thinking things like test-report streams, log streams etc.
Does swank already have something like this?
Yes, see the implementation of slime-redirect-trace-output and swank:redirect-trace-output. (However, the Emacs side needs to set up the connection between a buffer (actually a marker) and a :write-string target.) We should probably export the function swank::make-output-stream-for-target.
Matthias