martin rudalics writes: > I'm not very convinced. First, the present bug should not motivate this > change. ‘select-frame-by-name’ is a pretty obscure function. It fails > in the OP's case because the display info for the new frame has not been > yet set up. In the interactive call, suggesting a default frame on the > current terminal makes sense; so consulting that info is useful. But > the info is useless in a non-interactive call: Nothing should prevent > that function from selecting a frame with a given name on any display. Ah, so we could just do something like this? (untested)