> As I can see currently `fit-window-to-buffer' always takes space > from the bottom window, but we need it from the top window. Looking at this again, I believe what you want is to invert the order of stealing and giving as in the attached patch. Might have side-effects elsewhere. martin