I use in-out-str to capture some data that prints to stdout. The problem is that c-out-str seems to throw the return value from my function. Is there a way to capture both? I would like to have my own cake and eat it too.
Example:
(with-out-str (do (prn "test") (+ 1 1)))
source share