Enhanced bury-compile-buffer-if-successful