When using ediff, I find it annoying that when I use
b to copy from one buffer to another, the region remains highlighted despite the fact that the two files now match in those regions. I don't know if I'm the only one who expects the highlighting to always reflect the actual differences between the files or what.
I can use
! to call
ediff-update-diffs after each such call, but that doesn't seem like the right solution because it updates the diff of the entire buffer, not just the region that was just pasted. I thought about
- remapping a and b to lambdas that call
ediff-update-diffs. One problem with that is that if I make some edits by hand, the highlighting will not be updated. Still the best thing I have thought of, though.
ediff-update-diffsfrom a hook that runs any time the buffer is changed, but it seems like that would call it after every keystroke.
What's the best practice that ensures the highlighting in ediff always reflects the actual differences between the files, while retaining performance?