1

I sync my org files via Dropbox. Occasionally, Dropbox will bring in changes into a file whose buffer I've already modified. I can diff the buffer and the file on disk with diff-buffer-with-file; but then what?

Theoretically it's a diff minor mode file, so I should be able to use diff functions such as (diff-apply-hunk), but in practice a get an elisp stack trace.

What am I doing wrong? Is there a better approach?

2
  • Sounds like a bug. So I'd recommend M-x report-emacs-bug.
    – Stefan
    May 18, 2020 at 5:11
  • 2
    As a workaround (or not, as the case may be), see whether you have better success with the ediff variant, which is ediff-current-file.
    – phils
    May 18, 2020 at 6:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.