>> Ok. I think I understand now. What about adding an assertion to make >> sure current_buffer is shown in selected_window at that point? > > That'd be fine with me. I can suggest :