Don't use compile any more, use diff-mode instead.