
3 Feb
2010
3 Feb
'10
6:07 p.m.
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 -- Matthias Koeppe -- http://www.math.ucdavis.edu/~mkoeppe