problem of keeping point at identical position when switching between code and
edit buffers solved.