emacs ediff refresh buffers
Asked Answered
B

3

6

I am using emacs ediff to compare two files that I frequently update. How can I refresh or update the buffer to reflect the new file without killing and reloading ediff? When I try to update each file using C-x C-v, the Ediff Control Panel says "You have killed a vital Ediff buffer--you must leave Ediff now!"

Blinders answered 21/5, 2013 at 13:15 Comment(0)
L
12

Switch to the Emacs Ediff control panel and and press !.

That will do it.

Lsd answered 21/5, 2013 at 16:6 Comment(0)
F
2

Try updating the file with M-x revert-buffer, and then hit ! in the Ediff control panel to make Ediff recalculate the difference regions.

Foetid answered 21/5, 2013 at 13:33 Comment(0)
G
2

Ediff have ediff-revert-buffers-then-recompute-diffs.

From the ediff manual ediff-revert-buffers-then-recompute-diffs:

ediff-revert-buffers-then-recompute-diffs: This command reverts the buffers you are comparing and recomputes their differences. It is useful when, after making changes, you decided to make a fresh start, or if at some point you changed the files being compared but want to discard any changes to comparison buffers that were done since then.

Geronimo answered 26/4, 2015 at 8:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.