company: implement --doc-buffer