Alan Ruttenberg alanralanr@comcast.net writes:
openmcl (perhaps others) needs to add connection streams to a list to be periodically flushed so that output appears in emacs in a timely manner. I could redefine or advise create-connection and close-connection but I think it might make more sense to make these methods and then I can define :around methods to do what needs to be done. Or you could add a hook.
Maybe the gray-streams code is the place for the hook? e.g. advising MAKE-FN-STREAMS and the close methods of those streams?