Move buffer fields and funcs from edit.editor to edit.buffer