The diff command can be async, of course. Is there an easy way to run a function when the async or sync diff command finished running and the diff buffer's contents is ready?
I checked, but I saw no hook for this.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityA quick look seems to indicate that the only way you can do it is by advising vc-diff-finish
: it seems to be called after an async diff is done, so you should be able to piggyback whatever you want to do on it.
Untested.