GNU bug report logs - #57939
29.0.50; Fixing raise-frame on Sway

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Sean Whitton <spwhitton@HIDDEN>; dated Mon, 19 Sep 2022 16:22:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 57939 <at> debbugs.gnu.org:


Received: (at 57939) by debbugs.gnu.org; 20 Sep 2022 10:12:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 20 06:12:56 2022
Received: from localhost ([127.0.0.1]:56115 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oaaFM-0004Dl-0D
	for submit <at> debbugs.gnu.org; Tue, 20 Sep 2022 06:12:56 -0400
Received: from quimby.gnus.org ([95.216.78.240]:44008)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1oaaFK-0004DX-P7
 for 57939 <at> debbugs.gnu.org; Tue, 20 Sep 2022 06:12:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=KePLp45bFiv2ySRaCoFhwkqane/NauvgBBdXm8izoiE=; b=sSrZfccEc/ROELr1goD088QxfS
 SLtzy0GJzMUFsN9OlB+6l/vbNl2iqlNAh/suVTR9fCIiAzuvBi6JCxFSpfcoc+NHkUGi3oN6A1rcO
 wo3P5sSvmijdWvai0zZ/p6irOi54hDSNeS9jEaJyNIbIiW6/srISTHqSlYQicaQNJYys=;
Received: from [84.212.220.105] (helo=joga)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1oaaFB-00010n-7g; Tue, 20 Sep 2022 12:12:47 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#57939: 29.0.50; Fixing raise-frame on Sway
In-Reply-To: <87y1uelglr.fsf@HIDDEN> (Po Lu via's message of "Tue, 20 Sep
 2022 14:12:00 +0800")
References: <87illj8hdk.fsf@HIDDEN> <87bkran86m.fsf@HIDDEN>
 <871qs6haq3.fsf@HIDDEN> <87y1uelglr.fsf@HIDDEN>
X-Now-Playing: Espen Reinertsen's _Forgaflingspop_: =?utf-8?Q?=22Bj=C3=B8r?=
 =?utf-8?Q?nens?= sang"
Date: Tue, 20 Sep 2022 12:12:44 +0200
Message-ID: <87pmfqmk0z.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Po Lu via "Bug reports for GNU Emacs, the Swiss army knife
 of text editors" <bug-gnu-emacs@HIDDEN> writes: > I'm not worried about
 whether or not Sway keeps the interface stable, > the problem is whether or
 not Sway will still be a thing in 2, 5, 10, or > 20 years. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57939
Cc: Po Lu <luangruo@HIDDEN>, 57939 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@HIDDEN> writes:

> I'm not worried about whether or not Sway keeps the interface stable,
> the problem is whether or not Sway will still be a thing in 2, 5, 10, or
> 20 years.

That is indeed a worry.

> Not to mention that Sway is still a niche compositor, compared to the
> likes of GNOME Shell or Kwin.
>
> If we take the route of supporting non-standard interfaces provided by
> all "popular" Wayland compositors at any given time, then we will
> quickly fall into the rabbit hole of constantly keeping up with changes
> to that status quo.

There's no set rules for any of this -- but we want Emacs to be as
usable as possible across as large a number of systems as possible.
This means that we have a lot of special purpose code in Emacs to work
around oddities in systems, and to interact with specific systems and
libraries.

Sway seems to be one of the major players in the Wayland world, so I'd
welcome code to make Emacs work better under Sway.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57939; Package emacs. Full text available.

Message received at 57939 <at> debbugs.gnu.org:


Received: (at 57939) by debbugs.gnu.org; 20 Sep 2022 06:12:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 20 02:12:22 2022
Received: from localhost ([127.0.0.1]:55891 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oaWUY-0004Qe-Ke
	for submit <at> debbugs.gnu.org; Tue, 20 Sep 2022 02:12:22 -0400
Received: from sonic315-22.consmr.mail.ne1.yahoo.com ([66.163.190.148]:33491)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1oaWUW-0004QQ-60
 for 57939 <at> debbugs.gnu.org; Tue, 20 Sep 2022 02:12:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1663654332; bh=EPfBoCJZHDaITmRI2pqkC0C1hfA3wyaTHdWGi14xdCc=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To;
 b=Gbkhry9zsHmyhXC5eNQvdAU5Wrdm0WMYO5WXCWq/vOQRlVfHFY+Ltk3LG+JUCVeQ2RyEtLVJWbJRoYlwisZK+5ch2E1XjJ0ZgOttCamqLUyoC75uavKrxd5qMyHltyJMqvGPwyZNbptjfKEou0uRAe5yFW6onUGYDx2KQQ9+MOFqcZPJq6/Wtk9+MihFOgV7RD+oQhB5t/bSNeDckYWZVYbMDaFA6aApP0yCFO1tBLGIEOUfAe/ei1Dk+bezgxi0j6UJDimj17dJITZaFR4cR4bMrhrLmIsbc1Bjh9dUPkoOHjmCsgm5yCDfD6kWcoysXORrHyFjZ1Wpo0Uu4zA9kA==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1663654332; bh=nwhc3pifsn3RKNBUzjIgQxnUL0zu66oITtmROjcB2kC=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=h/K13P6SzaLB3IPNhaoz7LtPefegicL/VBp8Iz+CEiWjOF3cgi1vSwYNlvK6XBIsgo4TfrnenQpthQf8aZQDHDG0x4s/8PL9n1QAf6S77d3zoz+/STe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4QiGrHWJABFCtosddDvT74X7wOSTkR51Pm8Xs1qbSm9ZT2hXL9KObpbkmiC5NAoTFkWz
 .k2_u2sSRCnZxLVmMPuRHxYucGLjk9oCQHf4JLutgBCvq_TmsARaxr2FfEF4.gSUJ.daLWyU_Esd
 FOh1eyZBdRl8AcUUcw_1iQktlvtd5xurbC4P6MAI7FzfS7WIq3AxlfqKRS8MCRx90RxT1GsohnH2
 MJWDyZi_2dyH3bHtWsBJog776JF2hysRZQUy1sTLaJrlmaVyxMWg8DxFsYe3_mEcQ5Uy77eGofpr
 tVhFfyT1.RxRGYrbdn2jBOtF1t6MWA6aKCmovuSanTWOqch5DTZYWBz8efICega9026xOIUQRCnk
 _T8Vn0OhfZaqcYE.Z1YgZCYxKzfJDmwDQNYQqyFwnByF90YujYD8cgXWbGTDMHTBifqr8MSLV2VN
 FYw2GkttjgFJzmcE-
X-Sonic-MF: <luangruo@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic315.consmr.mail.ne1.yahoo.com with HTTP; Tue, 20 Sep 2022 06:12:12 +0000
Received: by hermes--canary-production-sg3-6bb8946c47-r6ds5 (Yahoo Inc. Hermes
 SMTP Server) with ESMTPA ID 86aef939998c2606d80d6208dbafb1ee; 
 Tue, 20 Sep 2022 06:12:07 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#57939: 29.0.50; Fixing raise-frame on Sway
References: <87illj8hdk.fsf@HIDDEN> <87bkran86m.fsf@HIDDEN>
 <871qs6haq3.fsf@HIDDEN>
Date: Tue, 20 Sep 2022 14:12:00 +0800
In-Reply-To: <871qs6haq3.fsf@HIDDEN> (Sean Whitton's message
 of "Mon, 19 Sep 2022 22:32:36 -0700")
Message-ID: <87y1uelglr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.20663
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 611
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57939
Cc: 57939 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sean Whitton <spwhitton@HIDDEN> writes:

> Sway is pretty committed to interface stability, but it's a valid concern.

I'm not worried about whether or not Sway keeps the interface stable,
the problem is whether or not Sway will still be a thing in 2, 5, 10, or
20 years.

Not to mention that Sway is still a niche compositor, compared to the
likes of GNOME Shell or Kwin.

If we take the route of supporting non-standard interfaces provided by
all "popular" Wayland compositors at any given time, then we will
quickly fall into the rabbit hole of constantly keeping up with changes
to that status quo.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57939; Package emacs. Full text available.

Message received at 57939 <at> debbugs.gnu.org:


Received: (at 57939) by debbugs.gnu.org; 20 Sep 2022 05:32:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 20 01:32:47 2022
Received: from localhost ([127.0.0.1]:55848 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oaVsF-0003R4-EI
	for submit <at> debbugs.gnu.org; Tue, 20 Sep 2022 01:32:47 -0400
Received: from out4-smtp.messagingengine.com ([66.111.4.28]:39429)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1oaVsD-0003Qq-8n
 for 57939 <at> debbugs.gnu.org; Tue, 20 Sep 2022 01:32:45 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
 by mailout.nyi.internal (Postfix) with ESMTP id 301415C02EB;
 Tue, 20 Sep 2022 01:32:38 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute2.internal (MEProxy); Tue, 20 Sep 2022 01:32:38 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name;
 h=cc:content-type:date:date:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:sender:subject
 :subject:to:to; s=fm1; t=1663651958; x=1663738358; bh=+veiWz5ckH
 3mFaj0OcKzSBSAxAxS3bzOboTBz917wQA=; b=e2PMhQYDUHt6qYlgAoQ7pUGk7s
 Nm2lq/s6bGHCbplXzS/H+O0j316XHPyHWNYBG3gSmTKsxBkd+x1C19qshfJ4fw9E
 GMYFPJFvCt8mZMyg692ax4wStsLdNIGPDz1JnE1ma21q+6v88LX0qqXDN8yK9ZxF
 zPGkv7I7P0bfvJmTHzZkMiezHLIOHO2NPEUpsEYOWbDVPs2Scf+L64BbzZVfvdoo
 mjDY6XuI7qKV5gs2WOjLp7UmF2FzTdOPhxwcY6ZkVAzoRBzI7YZwHc3MW3nMx+hr
 O+IIxbEbZrK/b0SrQxnmQ4ygTNU2CU9keGgRZqmWCBLoLEj3Q2q//X3gx5zA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:date:feedback-id
 :feedback-id:from:from:in-reply-to:in-reply-to:message-id
 :mime-version:references:reply-to:sender:subject:subject:to:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm2; t=1663651958; x=1663738358; bh=+veiWz5ckH3mFaj0OcKzSBSAxAxS
 3bzOboTBz917wQA=; b=wRwaAsUwDaIlRAVkzBPBYCbDn6f515kcGcX6oNa9s2n1
 s1Hr3qGtH/pGR8arhhZs+2XUeSoWJOdLuSOoQlLm1KYuVn15lLNfMkYgzEFMYsT1
 GBOFx/iyIKIMrfanMsbpXDCiF9YG8owVxCmttWEbE1TWbBP5qw6udwXFAgQWakmr
 kg7v8aKqfI7bZqirI29vgK9PSW0Efp478nlyOe9twqKd/gIbAQeSRZbCiWtMVnM5
 jf54P6siAxdjbj3/GIHZ5wa0AYvVNRnFEffoTajH0rdzcdX+8H16hLzaznTL2DjJ
 YsyN+nAm4IHoK7eznQrAxV5WBRRwtNSkiUBK9x0Zfg==
X-ME-Sender: <xms:dlApY60TTA66RznzyFE9WC7MxmoIZHjQtfSz5-tGWTGMltkIhHKXKg>
 <xme:dlApY9Hqg-EeGc9l42cfxHMgYWcTsre4m_rSGrMxPnmxc9KI_aOHb1s5CMsiJZz6p
 tcSYzdvnpEGDCL5fw>
X-ME-Received: <xmr:dlApYy4ZLziRuHfUII3gjIxBtMf7np_WEKASFtEUM0zPUC9vvQLoJw8nMthnjekPT8qWYfRAwakPjLsPJ4HIPf9Te2bIAISkosNvFzFPxNZbjPHReQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedvkedgleekucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffffkfgggtgesthdttd
 dttdertdenucfhrhhomhepufgvrghnucghhhhithhtohhnuceoshhpfihhihhtthhonhes
 shhpfihhihhtthhonhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeffueettdefvddtte
 evgfeufeejgfegudfgfedutdegfeetkeehuddvfeejjeeifeenucevlhhushhtvghrufhi
 iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsphifhhhithhtohhnsehsphifhh
 hithhtohhnrdhnrghmvg
X-ME-Proxy: <xmx:dlApY714-JuqhCJZ2y093hrNzCIJ06uzGBKJ4xbyVGamjbF5ZyJFYQ>
 <xmx:dlApY9H6xBWJQ6qir6apOGH2VcxfjUzPdK_j7XBK1SkJAQfaKGNiEg>
 <xmx:dlApY08tyTUHLpKA05x8clV4-DgzaZV0Hd2AQt-EG5cTJV9ROGoB0w>
 <xmx:dlApYwPuqNzflvkZNRtTaBNDh1JHZytNdxA528UbJeArxep8ZGwp5g>
Feedback-ID: i23c04076:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 20 Sep 2022 01:32:37 -0400 (EDT)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 329B07EF3CE; Mon, 19 Sep 2022 22:32:36 -0700 (MST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>, 57939 <at> debbugs.gnu.org
Subject: Re: bug#57939: 29.0.50; Fixing raise-frame on Sway
In-Reply-To: <87bkran86m.fsf@HIDDEN> (Po Lu's message of "Tue, 20 Sep 2022
 09:30:57 +0800")
References: <87illj8hdk.fsf@HIDDEN> <87bkran86m.fsf@HIDDEN>
Date: Mon, 19 Sep 2022 22:32:36 -0700
Message-ID: <871qs6haq3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 57939
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hello,

On Tue 20 Sep 2022 at 09:30AM +08, Po Lu wrote:

> If there's anything I've learned in over 2 decades of dealing with
> windowing on GNU/Linux, it's that these mechanisms tend to be yanked
> from underneath our feet.  It sounds very risky to add support for that
> to such a basic function in Emacs.

Sway is pretty committed to interface stability, but it's a valid concern.

> And what if there are multiple frames with the same name? What frame is
> raised in that case?

Yeah, we'd need to make a more precise IPC query to get some sort of
unique handle.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57939; Package emacs. Full text available.

Message received at 57939 <at> debbugs.gnu.org:


Received: (at 57939) by debbugs.gnu.org; 20 Sep 2022 01:31:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 19 21:31:47 2022
Received: from localhost ([127.0.0.1]:55647 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oaS71-0003UV-AD
	for submit <at> debbugs.gnu.org; Mon, 19 Sep 2022 21:31:47 -0400
Received: from sonic314-21.consmr.mail.ne1.yahoo.com ([66.163.189.147]:40742)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1oaS6y-0003UG-MA
 for 57939 <at> debbugs.gnu.org; Mon, 19 Sep 2022 21:31:45 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1663637498; bh=AOW/vyqmzFGnyKtL58zCpF537WyMKqOYnbVSW4dE5+8=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To;
 b=h5QNRo2QVHhh/5qI0dGH14wosvB2OaKrgMSJKjsxLcp48wIpHuEE3WZodPn1MyhDI34chmL1TNlO2JpvcMOvFumivVJ9ZjW+Hkj2J7HZ7TNp8DReT1LPR0OUs+QKb5wGpfAvpjrD9tK8sEx7xdFGBzg/Kqotp2QIlqbEqHJg5t3XitI78Q/SPMeXfi4GcHMHDFGmx7TF4UkHY/hXFXa8Bp2lq2F7L6yS3oq+fUjRG5C7Vi35JZs7B68R4BEEpZsfnSkbdipBeSl/J4OXmkkgT0lySpcCETsBXPAmA4hpw90TCA0H1kMd4hyxYA8NGfsSyTOU059KKYr2JTvJ2235Fg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1663637498; bh=9Vuz+IckqA/SQWt+3hmB8rdNQmm+X5jxPX8W9QemtyV=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=G8jw9Ua4EEyikHGWQ3agpU6OJ0/anJG0lqq/MtJZMAkcBvGXIrv9KGYjjXVivg7rwvt7Gg9b3oQprPUe3HovCR581CUn5v1dsgPrMlZoqZ98a202eI0B1SeMFR7+5sAI72AbHY1+HeVIZEzgjdDZKCVnJe/8WJG22tHmooVGpxufraXIfIodIuYdUZoVlc68zgj1Rwq/LfAytW8S00HpsBtclOlFKolIfPwj2o7uvo6B92QYhIOi6eNO/wvKMSylA83lOie7EKyppjH1xgR8Wo+eTi2fAksi61l7aC8HUN52US6q2e+aIblUFfGXXTueV3nTQjw1Hvpakq6zKssUZA==
X-YMail-OSG: I5OO4WEVM1kj6tfBe3YvBG_ZLQxpC2QD0tKH5DioRS0f6ssa7quffRROCTrcJef
 WhScfMne24Fi4cvEg3WKItrsKaIPhS2X8wHmTFgeldjmDaQXmoy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n43jKHLmUCErA8S2e0AtskFT77UzZeqiGru8XyXqSnQGDSt8wsxG89cWJjSqr5nvzpqJ
 wAyAK58PvC02GCbWaqcWCCyGq_9WosBmCyh6HQw6rqgRHBs0LQ4_.KhAZDuVe0PXpfgmi14rFnt5
 Leeh1RMoKCQ--
X-Sonic-MF: <luangruo@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic314.consmr.mail.ne1.yahoo.com with HTTP; Tue, 20 Sep 2022 01:31:38 +0000
Received: by hermes--canary-production-sg3-6bb8946c47-kl2d9 (Yahoo Inc. Hermes
 SMTP Server) with ESMTPA ID 760231f16efbabf06da96212a107b065; 
 Tue, 20 Sep 2022 01:31:34 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#57939: 29.0.50; Fixing raise-frame on Sway
References: <87illj8hdk.fsf@HIDDEN>
Date: Tue, 20 Sep 2022 09:30:57 +0800
In-Reply-To: <87illj8hdk.fsf@HIDDEN> (Sean Whitton's message
 of "Mon, 19 Sep 2022 09:21:27 -0700")
Message-ID: <87bkran86m.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.20663
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1588
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57939
Cc: 57939 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sean Whitton <spwhitton@HIDDEN> writes:

> Under Sway, with pgtk, raise-frame doesn't work.  We could make it work
> by using Sway's IPC to send a request to "focus" the frame.  This can be
> done without invoking any external processes, but here is a hack using
> swaymsg(1) just as a demonstration:
>
>     (defun spw/sway-raise-frame (orig-fun &optional frame)
>       (unless frame (setq frame (selected-frame)))
>       (if (member "XDG_CURRENT_DESKTOP=sway"
>                   (frame-parameter frame 'environment))
>           (call-process "swaymsg" nil nil nil
>     		    (format "[title=\"%s\"]"
>                             (frame-parameter frame 'name))
>     		    "focus")
>         (funcall orig-fun frame)))
>     (advice-add 'raise-frame :around #'spw/sway-raise-frame)

> On the one hand, Sway is one of the more popular Wayland compositors, so
> it would be nice to support this.  On the other hand, this isn't a
> generic wlroots mechanism -- it will work only for Sway.  (I suppose
> it's possible that some other compositors will adopt Sway's IPC.)

If there's anything I've learned in over 2 decades of dealing with
windowing on GNU/Linux, it's that these mechanisms tend to be yanked
from underneath our feet.  It sounds very risky to add support for that
to such a basic function in Emacs.

In addition, raise-frame is not really supposed to focus the frame.  But
I guess that's unavoidable here.

And what if there are multiple frames with the same name? What frame is
raised in that case?

So thanks, but this is not really the right thing for Emacs.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57939; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Sep 2022 16:21:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 19 12:21:45 2022
Received: from localhost ([127.0.0.1]:55021 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oaJWj-0007fV-8p
	for submit <at> debbugs.gnu.org; Mon, 19 Sep 2022 12:21:45 -0400
Received: from lists.gnu.org ([209.51.188.17]:36646)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1oaJWg-0007fN-PR
 for submit <at> debbugs.gnu.org; Mon, 19 Sep 2022 12:21:43 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45818)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <spwhitton@HIDDEN>)
 id 1oaJWg-0004le-7S
 for bug-gnu-emacs@HIDDEN; Mon, 19 Sep 2022 12:21:42 -0400
Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:53317)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <spwhitton@HIDDEN>)
 id 1oaJWc-0006Ku-Hq
 for bug-gnu-emacs@HIDDEN; Mon, 19 Sep 2022 12:21:41 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id CEA8732008FC
 for <bug-gnu-emacs@HIDDEN>; Mon, 19 Sep 2022 12:21:29 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Mon, 19 Sep 2022 12:21:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name;
 h=cc:content-type:date:date:from:from:in-reply-to:message-id
 :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=
 1663604489; x=1663690889; bh=BFBd8oIU0LnJmYAfD0Ht3rIutZM7YBOADSP
 0T5UT7NM=; b=3jasczCY4ll7D99WuUiI/FC0R65kpbGFH8sNnrdSaOqlWnzZ9Xa
 Id2d5iousMOPAU52ccdl181OCY8SFrXhLlmB4PXp/njlzvHrKnFLgjz29fUnkzzI
 mi2PmfhtwlC6XFCYVoMbPdZH1CkiS6uCBUhxkryZSYUrx+Py6WY54Qb0oBlQyKLe
 LJ+F6LeSaACk9bR0nTr54izKDTq+4lakwuwTqtswsFzP8SqHwOt5DMe2yjN334lp
 43T7tyBnNxwFnggjPurt3EYy+bQ5rj8j6ncEGp9Sxx6tXhV9mIw0ZWbzloU+HoAr
 qns8Uo6ZI7sneZoSM33UnxBW+b13LWTGVKg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:date:feedback-id
 :feedback-id:from:from:in-reply-to:message-id:mime-version
 :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1663604489; x=
 1663690889; bh=BFBd8oIU0LnJmYAfD0Ht3rIutZM7YBOADSP0T5UT7NM=; b=n
 dyAkg75Tgk2BZRKnuBsZoCFF82goYzaY5kaZI1cT+xE+VuhuIt4DAO+jXzzaqW1q
 diGXLWa7s4PWjAnlm25e1cTnPayQ4hXX8Cbbaj6e7n0PL5q7wfkRfj0CiK5/Wo+N
 c+GhVEVCa2C8mueuraOdRhf0LPgpYGZkRFm084CvPdST2F/lj6bPw7nmkezmp+Oh
 TE1W56jvv3TiUp85OQ2SDsxDJzr70AH8I/+Ypwj+kyHk2YXwnDgGAm5HFTdJ3C3O
 elZ2kE28yL5aUKlh097bjpaY8jy1/0hI50/tbI59v7aNl5XKjvEhfeaZHIdLk1L9
 mjzIg14SFS/UZNCECH2yw==
X-ME-Sender: <xms:CZcoY7IMVPB7tCKHre6oW50Hk_AiV6E_QZH-dBLC8Dddd4Sp-2RMtg>
 <xme:CZcoY_JvPy85HkW4rR3EEd6Ay-wVCAgN_S3uvRcW4VqGazZ1-EpBHbMJvp1zXJXlz
 tIT6AvskL8BH9kZ5Q>
X-ME-Received: <xmr:CZcoYztuDiMNqFH8JbICOxS7-bJOKXf64FgFhmW2R5ox4avA2noTF03G-_y8n4CfHs0MDGZEfmpv6gwNSCTWbMxYn1A9cQjAzBI6RXMqrWmf4fNb_A>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedvjedguddtudcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgfgggtsehttddttd
 dtredtnecuhfhrohhmpefuvggrnhcuhghhihhtthhonhcuoehsphifhhhithhtohhnsehs
 phifhhhithhtohhnrdhnrghmvgeqnecuggftrfgrthhtvghrnhepgfeghfffuedvudekhf
 eihffghfeuvedvvdekueetffekgfekhedutdejgfdufeetnecuffhomhgrihhnpeguvggs
 ihgrnhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh
 hrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg
X-ME-Proxy: <xmx:CZcoY0ZddfEPoawRRwMXnb429bwDrYKF0DqePGQQJ6spK3FtVPLlZQ>
 <xmx:CZcoYyZfkS07wOV4AOA_QpsdMl2fOqwAqn_b7zzJHWECOxfZZ0SNKw>
 <xmx:CZcoY4BDUC6aa5EOwwRbOeZJfMBmJMA45AWlq_POCqYC3ZsXLxkzYw>
 <xmx:CZcoYw3vcmmnTAF1a7buke2plMBgrZxM-NGYxPBtUJyeanbl3vm7qQ>
Feedback-ID: i23c04076:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Mon, 19 Sep 2022 12:21:29 -0400 (EDT)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 42BDE7F2868; Mon, 19 Sep 2022 09:21:27 -0700 (MST)
From: Sean Whitton <spwhitton@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.0.50; Fixing raise-frame on Sway
Date: Mon, 19 Sep 2022 09:21:27 -0700
Message-ID: <87illj8hdk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=64.147.123.19;
 envelope-from=spwhitton@HIDDEN; helo=wout3-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Under Sway, with pgtk, raise-frame doesn't work.  We could make it work
by using Sway's IPC to send a request to "focus" the frame.  This can be
done without invoking any external processes, but here is a hack using
swaymsg(1) just as a demonstration:

    (defun spw/sway-raise-frame (orig-fun &optional frame)
      (unless frame (setq frame (selected-frame)))
      (if (member "XDG_CURRENT_DESKTOP=sway"
                  (frame-parameter frame 'environment))
          (call-process "swaymsg" nil nil nil
    		    (format "[title=\"%s\"]"
                            (frame-parameter frame 'name))
    		    "focus")
        (funcall orig-fun frame)))
    (advice-add 'raise-frame :around #'spw/sway-raise-frame)

On the one hand, Sway is one of the more popular Wayland compositors, so
it would be nice to support this.  On the other hand, this isn't a
generic wlroots mechanism -- it will work only for Sway.  (I suppose
it's possible that some other compositors will adopt Sway's IPC.)

Would this be an appropriate thing to add to raise-frame?  Or is it
better left as a piece of advice?  The IPC protocol is documented here:
<https://manpages.debian.org/sway-ipc>.

-- 
Sean Whitton




Acknowledgement sent to Sean Whitton <spwhitton@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#57939; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 20 Sep 2022 10:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.