emacs: WIP rework buffer management