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

From: [email-masked]
Date: Tue, 24 Jan 2017 18:35:25 -0500

Alex 'QWxleA' Poslavsky <[email-masked]> writes:

> 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’
>
> I left everything else, but it doesn't look helpful.

I guess this is more fallout from my recent fix for #24091 [1: 6a788d2].
The following simplification of your `qw' function works for me:

(defun qw ()
  (interactive)
  "Create a new capture frame helper-function" 
  (select-frame (make-frame '((width . 120)
                              (height . 25))))
  (org-agenda))

1: 2017-01-20 23:36:26 -0500 6a788d2fc18c23dcfc5d0352649b2f690e9cbff7
  Don't wait for frame to become visible