[squash] export open_doc/4