[slime-devel] wishlist feature: swank:make-emacs-buffer-stream
Matthias Koeppe
mkoeppe+slime at mail.math.uni-magdeburg.de
Wed Feb 3 18:07:58 UTC 2010
On Wed, Feb 3, 2010 at 7:42 AM, Nathan Bird <nathan at 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
More information about the slime-devel
mailing list