undo tree and buffer-resize-mode