Emacs: set org-replace-disputed-keys at the right time