org-babel-comint-in-buffer

org-babel-comint-in-buffer is a Lisp macro in `ob-comint.el'.

(org-babel-comint-in-buffer BUFFER &rest BODY)

Check BUFFER and execute BODY.
BUFFER is checked with `org-babel-comint-buffer-livep'. BODY is
executed inside the protection of `save-excursion' and
`save-match-data'.