* create a target in emacs #+BEGIN_SRC emacs-lisp (defun make-target-at-point (buffer target) (setf (gethash target slime-output-target-to-marker) (with-current-buffer buffer (point-marker)))) (make-target-at-point "*foo*" :foo) #+END_SRC * get a stream for the target #+BEGIN_SRC lisp (defparameter *s* (swank-repl::make-output-stream-for-target swank::*emacs-connection* :foo)) (format *s* "~&Hello, World~%") ;; nothing happens until force-output (force-output *s*) #+END_SRC