When I issue M-x ediff-buffersI'd like ediff to create a new frame with the two buffers (and close this frame when done with the comparison). How can I customise ediff to do so?
I tried
(defun leo-ediff-before-setup () (make-frame)) (add-hook 'ediff-before-setup-hook 'leo-ediff-before-setup) but this sets the initial frame and a new frame up for the comparison.
make-framejust creates a frame displaying the current buffer. Is that what you want? Is the current buffer what you want in the new frame?C-h v ediff-window-setup-functionand go from there. (You can answer your own question if you get that working.)ediff-setup-windows-multiframe(which is called fromediff-window-setup-function) to make a frame before all the setup, but it seems to be already too late: the new frame is made, but ediff arranges the buffer still in the old frame. :-(