Subject: Re: bug#25521: 26.0.50; After (make-frame '((name . "foo"))) (select-frame-by-name "foo") doesn't see the frame

From: Eli Zaretskii <[email-masked]>
Date: Wed, 25 Jan 2017 05:31:56 +0200

> From: Alex 'QWxleA' Poslavsky <[email-masked]>
> Date: Tue, 24 Jan 2017 23:05:34 +0200
> 
> 
> The following, used as ~/.emacs.d/init.el:
> 
> (require 'org)
> 
> (defun qw ()
>   (interactive)
>   "Create a new capture frame helper-function" 
>   (make-frame '((name . "foo")
>                 (width . 120)
>                 (height . 25)))
>   (select-frame-by-name "foo") 
>   (org-agenda))
> 
> works on emacs24, but not on a current git, build 24 Jan 2017. The
> error-message is: select-frame-by-name: There is no frame named ‘foo’

Does it help to insert a short wait before the select-frame-by-name
call?