Stefan Monnier writes: > You lost the `(with-current-buffer ,temp-buffer` around `write-region` > so your new code will break if `body` doesn't preserve current-buffer. Ugh, I thought the caller couldn't kill the buffer because it's later written, but I didn't think of excursions. I've now attached an updated patch. Thanks, -- Basil