[slime-devel] wishlist feature: swank:make-emacs-buffer-stream

Michael Weber michaelw+slime at foldr.org
Wed Feb 3 15:57:38 UTC 2010

On Feb 3, 2010, at 16:42 , Nathan Bird 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?

Quite some time ago, I toyed around with an implementation of buffer streams (actually, with two implementations, but the files matching *2.* seem very incomplete, that's likely where I got distracted).  AFAICT, the code implements input-streams, and you want output-streams, but that should not be that much of a problem anymore to add.

I have no idea about the status of the code (attached), but perhaps it gives you some ideas.  To be put in contrib/, I guess.   Feel free to do whatever with the code.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: slime-buffer-streams.zip
Type: application/zip
Size: 2778 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20100203/675ae052/attachment.zip>

More information about the slime-devel mailing list