(buffer-action-compile): Save current buffer info before 'compile.