From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: select-frame-set-input-focus fails to raise the frame Date: Wed, 13 Dec 2017 16:53:20 -0500 Message-ID: References: <20171213204923.GB1621@breton.holly.idiocy.org> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114058a48d1bff05603fcd20" X-Trace: blaine.gmane.org 1513202047 15599 195.159.176.226 (13 Dec 2017 21:54:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2017 21:54:07 +0000 (UTC) Cc: emacs-devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 13 22:54:02 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePEyY-0003V0-CS for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2017 22:54:02 +0100 Original-Received: from localhost ([::1]:37923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePEya-0001Hs-N1 for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2017 16:54:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePEyT-0001Hm-7Q for emacs-devel@gnu.org; Wed, 13 Dec 2017 16:53:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePEyO-0004IG-CQ for emacs-devel@gnu.org; Wed, 13 Dec 2017 16:53:57 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePEyO-0004IA-8N for emacs-devel@gnu.org; Wed, 13 Dec 2017 16:53:52 -0500 Original-Received: from mail-qt0-f182.google.com ([209.85.216.182]:34853) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ePEyN-0005KO-T2 for emacs-devel@gnu.org; Wed, 13 Dec 2017 16:53:51 -0500 Original-Received: by mail-qt0-f182.google.com with SMTP id u10so5649035qtg.2 for ; Wed, 13 Dec 2017 13:53:51 -0800 (PST) X-Gm-Message-State: AKGB3mLLwhVAJs44ng/HSY6hlbB9xD2W9lKvFhHAhiJUH4ovnPwcQ0VR CHw8qIbq++MGIP040NbkOof7wnDi+H+h7QNF99Y= X-Google-Smtp-Source: ACJfBouTMhE56z04LrOMa4IUCfx6nxR/qHZ6Vh+pIBrHze+qaVJC3cJdqhbqU3ShZh3pmFRMV/VgOWUI4OWAWrf6uuU= X-Received: by 10.200.38.33 with SMTP id u30mr13863548qtu.197.1513202031334; Wed, 13 Dec 2017 13:53:51 -0800 (PST) Original-Received: by 10.200.55.124 with HTTP; Wed, 13 Dec 2017 13:53:20 -0800 (PST) In-Reply-To: <20171213204923.GB1621@breton.holly.idiocy.org> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221024 Archived-At: --001a114058a48d1bff05603fcd20 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 13, 2017 at 3:49 PM, Alan Third wrote: > On Tue, Dec 12, 2017 at 06:02:38PM -0500, Bob Weiner wrote: > > (defun test () > > (let ((depress-frame (selected-frame)) > > (release-frame (make-frame))) > > (select-frame-set-input-focus depress-frame) > > ;; On MacOS, depress-frame is never raised to the top > > ;; of the frame stack and never is given input focus > > ;; after release-frame is created. > > (sit-for 4) > > (select-frame-set-input-focus release-frame))) > > > > (test) > > > > ---------- > > I feel I=E2=80=99m being a bit dim here, but depress-frame is already rai= sed > and focused when I run this in the scratch buffer, so I=E2=80=99m unsure = how > to try replicating it. > =E2=80=8BOn macOS for me, the (make-frame) call puts the new frame at the t= op of the stack and sets input focus there for me, so depress-frame is under that. Bob --001a114058a48d1bff05603fcd20 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Dec 13, 2= 017 at 3:49 PM, Alan Third <al= an@idiocy.org> w= rote:
On Tue, Dec 12, 2017 at 06= :02:38PM -0500, Bob Weiner wrote:
> (defun test ()
>=C2=A0 =C2=A0(let ((depress-frame (selected-frame))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0(release-frame (make-frame)))
>=C2=A0 =C2=A0 =C2=A0(select-frame-set-input-focus depress-frame)
>=C2=A0 =C2=A0 =C2=A0;; On MacOS, depress-frame is never raised to the t= op
>=C2=A0 =C2=A0 =C2=A0;; of the frame stack and never is given input focu= s
>=C2=A0 =C2=A0 =C2=A0;; after release-frame is created.
>=C2=A0 =C2=A0 =C2=A0(sit-for 4)
>=C2=A0 =C2=A0 =C2=A0(select-frame-set-input-focus release-frame)))
>
> (test)
>
> ----------

I feel I=E2=80=99m being a bit dim here, but depress-frame is alread= y raised
and focused when I run this in the scratch buffer, so I=E2=80=99m unsure ho= w
to try replicating it.

=E2=80=8BOn macOS for me,= the (make-frame) call puts the new frame at the top of the stack and sets = input focus there for me,
so depress-frame is under that.

Bob

--001a114058a48d1bff05603fcd20--