Implement moving buffers in the stack and in-sequence undo for it