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: Sat, 16 Dec 2017 14:24:33 -0500 Message-ID: References: <20171213204737.GA1621@breton.holly.idiocy.org> <20171213222634.GA2144@breton.holly.idiocy.org> <831sjwt1jf.fsf@gnu.org> <83tvwrsouc.fsf@gnu.org> <83d13espny.fsf@gnu.org> <83a7yisl6t.fsf@gnu.org> <5A356EAF.5030507@gmx.at> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1149a384f964fe05607a1252" X-Trace: blaine.gmane.org 1513452323 14590 195.159.176.226 (16 Dec 2017 19:25:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Dec 2017 19:25:23 +0000 (UTC) Cc: Eli Zaretskii , Alan Third , emacs-devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 16 20:25:13 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 1eQI5B-0002vE-6P for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2017 20:25:13 +0100 Original-Received: from localhost ([::1]:51794 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQI5I-0004je-18 for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2017 14:25:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQI58-0004h7-9x for emacs-devel@gnu.org; Sat, 16 Dec 2017 14:25:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQI53-00025d-C4 for emacs-devel@gnu.org; Sat, 16 Dec 2017 14:25:10 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQI53-00025Q-8y for emacs-devel@gnu.org; Sat, 16 Dec 2017 14:25:05 -0500 Original-Received: from mail-qk0-f171.google.com ([209.85.220.171]:45471) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1eQI52-0001gD-K1; Sat, 16 Dec 2017 14:25:04 -0500 Original-Received: by mail-qk0-f171.google.com with SMTP id o126so1671299qke.12; Sat, 16 Dec 2017 11:25:04 -0800 (PST) X-Gm-Message-State: AKGB3mJDG4D1P4cC7z/NGhhcmnpMUHrd4dwYLodRl0mLaURwYgJzcd0H 3Ke/NESvk59BRKxjayZnoKq71zdRCmNU7s+tHVY= X-Google-Smtp-Source: ACJfBosHAt+CjME61mF2oGbioo1NK3RtJ59HL5aM5hQXCYMqb9rsWfDHzvdsjANQPUGQdJ5rwLK+mXn8q1VdnALkzBQ= X-Received: by 10.55.217.153 with SMTP id q25mr2652219qkl.175.1513452304160; Sat, 16 Dec 2017 11:25:04 -0800 (PST) Original-Received: by 10.200.55.124 with HTTP; Sat, 16 Dec 2017 11:24:33 -0800 (PST) In-Reply-To: <5A356EAF.5030507@gmx.at> 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:221146 Archived-At: --001a1149a384f964fe05607a1252 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Dec 16, 2017 at 2:06 PM, martin rudalics wrote: > >> Take raise-frame for example. Should we not expect > >> this to make the given frame the topmost? The doc string says we > >> should. > > > > Martin will tell, but I personally am not sure we can rely on that, > > the doc string notwithstanding. > > `raise-frame' should make a frame's window-system window the topmost one > in its z-group and any z-group beneath it. =E2=80=8BThat is all I am asking of it. It should not direct input > focus to that frame although many window managers and window systems may > do that automatically. This should be no problem when the Emacs thread > already has input focus. If, however, Emacs doesn't have focus, it > would try to steal focus from another application and many "modern" > window managers and window systems may prevent that. > I do a lot of interactive, user-centered work where the Emacs is naturally the application with focus, so in this context there is no issue. =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > So `raise-frame' works reliably when the frame is given input focus as > =E2=80=8B=E2=80=8B > well - users of `minibuffer-auto-raise' should be able to confirm that. > =E2=80=8B=E2=80=8B > Calling it twice in a row without intermittent user interaction, using > =E2=80=8B=E2=80=8B > time to control its behavior, or calling it when Emacs doesn't already > =E2=80=8B=E2=80=8B > have focus, however, usually means asking for trouble. =E2=80=8BGood to know. Bob =E2=80=8B --001a1149a384f964fe05607a1252 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Dec 16, 2= 017 at 2:06 PM, martin rudalics <rudalics@gmx.at> wrote:
>> Take raise-f= rame for example.=C2=A0 Should we not expect
>> this to make the given frame the topmost?=C2=A0 The doc string say= s we
>> should.
>
> Martin will tell, but I personally am not sure we can rely on that, > the doc string notwithstanding.

`raise-frame' should make a frame's window-system window the topmos= t one
in its z-group and any z-group beneath it.

=E2=80=8B= That is all I am asking of it.

It= should not direct input
focus to that frame although many window managers and window systems may do that automatically.=C2=A0 This should be no problem when the Emacs threa= d
already has input focus.=C2=A0 If, however, Emacs doesn't have focus, i= t
would try to steal focus from another application and many "modern&quo= t;
window managers and window systems may prevent that.
<= br>
I do a lot of interactive, user-centered work where the Emacs
is natu= rally the application with focus, so in this context
there is no issue.
<= br>
=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
So `raise-frame' works reliably when= the frame is given input focus as
=E2=80=8B=E2=80=8B
well - users of `minibuffer-auto-raise&#= 39; should be able to confirm that.
=E2=80=8B=E2=80=8B
Calling it twice in a row without interm= ittent user interaction, using
=E2=80=8B=E2=80=8B
time to control its behavior, or calling= it when Emacs doesn't already
=E2=80=8B=E2=80=8B
have focus, however, usually means askin= g for trouble.

=E2=80=8BGood to know.

Bob
= =E2=80=8B
--001a1149a384f964fe05607a1252--