Subject: Re: bug#36894: Restore frameset focus and selectedness

From: Eli Zaretskii <[email-masked]>
Date: Thu, 15 Aug 2019 22:37:59 +0300

> From: Juri Linkov <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>,  [email-masked]
> Date: Thu, 15 Aug 2019 21:36:33 +0300
> 
> Then I don't understand the logic of make-frame-command:
> 
>   (defun make-frame-command ()
>     (interactive)
>     (if (display-graphic-p)
>         (make-frame)
>       (select-frame (make-frame))))
> 
> On a graphic display it doesn't select the new frame explicitly,
> maybe on the assumption that all window managers should select it
> afterwards?

On a TTY, if you don't select the new frame, it is invisible.  On a
GUI display, the new frame is visible, so there's no need to
explicitly select it, because no one said the user wants the new frame
become selected.