• Download Gist
lime-redirect-inferior-output in slime-repl.el
Emacs Lisp
1 2 3 4 5 6 7 8 9 10 11
(defun slime-redirect-inferior-output (&optional noerror)
"Redirect output of the inferior-process to the REPL buffer."
(interactive)
(let ((proc (slime-inferior-process)))
(cond (proc
(let ((filter (slime-rcurry #'slime-inferior-output-filter
(slime-current-connection))))
(set-process-filter proc filter)))
(noerror)
(t ;; (error "No inferior lisp process")
(message "No inferior lisp process - proceeding, anyway: be happy, clojurer!")))))

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.