From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.devel Subject: Re: master f0ff20be51: * src/emacs.c (main): Improve accuracy of daemon warning message on PGTK. Date: Wed, 06 Apr 2022 17:49:04 -0700 Message-ID: <87y20hhg5b.fsf@athena.silentflame.com> References: <164921225790.11115.15669298143254852205@vcs2.savannah.gnu.org> <20220406023058.315C7C009A8@vcs2.savannah.gnu.org> <87ilrm9qa7.fsf@athena.silentflame.com> <87ilrlzqgu.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28261"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 07 02:50:50 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncGMK-0007AR-7b for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Apr 2022 02:50:49 +0200 Original-Received: from localhost ([::1]:47246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncGMI-0006R9-Rg for ged-emacs-devel@m.gmane-mx.org; Wed, 06 Apr 2022 20:50:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncGKl-0005jF-Fx for emacs-devel@gnu.org; Wed, 06 Apr 2022 20:49:11 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:57989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncGKj-0008S0-A9 for emacs-devel@gnu.org; Wed, 06 Apr 2022 20:49:11 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id A9CCA32007CF; Wed, 6 Apr 2022 20:49:06 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 06 Apr 2022 20:49:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc: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=fm3; bh=14V6IDEPyWE71Oa0y2Ws4MRvJJxDIs uuJk6Ht+r2Q/Y=; b=WylpLMr3FkU73+ZkTHUU4XSzeyO6OBadivPXRDhjhIC+i7 dBxTdOET/VmbjM8XsCCLLn0HZFxv1XaQkXrjo+SIqHOyMYJ4NkWYkZbcveZgPtRW klZtdhSaWayHPJ212RcqPLDiGvSJYvJuxjNtiyO03BXQS6wXaiJ5yV7RE0+cBxpz LOExUvisg1nYotykUWHWLzYu5LgwADzkt+UyK4ZEJTIW+O/TihgxIBNYb+wTUtX/ LeXzkoVpOWlVL6u654kca9Iz/FGfOjYQam5Iuwexc3+F1ioTNYomio/C8ntGnyUi QK3+e5iL+X2t8zxkrGmYEXTfjhC0xgdtqiD8907A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=14V6IDEPyWE71Oa0y 2Ws4MRvJJxDIsuuJk6Ht+r2Q/Y=; b=EJ+o7hRfu807/b7o9fQhyl4vD60wEkZ/+ yJ/skykFF2hfZxb/LSWGsMfpQ1VK0QAhHsJ1urSJ5DXwU8kz5B7qYX3iKDnthPxP wF4TemqTg5UW2aRmsbomiuFYBU6oaagoCeGLUdKprc2PYF1eYt9UmBr383to+q1L 7Jqxc0Ja5TBEWubowIs38d/GPrU0OXll1HKD2vrJV6l8CTbJkDGGBctAm8sCV6fe DV9O+3MKJ0tCyiHwLypC1Dv1RePixSzRHKtXx6oDD1rw5C1y63HEY+4npLpY9IAP lOlMTf0nT8A5TTpMgEuw0LRv/ojPW4UEiLU6BfIZNpIm+iEPBIsqA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudejjedgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffgffkfggtgesmhdttd ertdertdenucfhrhhomhepufgvrghnucghhhhithhtohhnuceoshhpfihhihhtthhonhes shhpfihhihhtthhonhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpefgueeutedvkeffge dvveetheejieetvdduvdffheevgfetvdfghfetteffvdevjeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsphifhhhithhtohhnsehsphifhh hithhtohhnrdhnrghmvg X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Apr 2022 20:49:06 -0400 (EDT) Original-Received: by athena.silentflame.com (Postfix, from userid 1000) id 18FDA1CA115; Thu, 7 Apr 2022 00:49:05 +0000 (UTC) In-Reply-To: <87ilrlzqgu.fsf@yahoo.com> Received-SPF: pass client-ip=64.147.123.21; envelope-from=spwhitton@spwhitton.name; helo=wout5-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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287866 Archived-At: --=-=-= Content-Type: text/plain Hello, On Thu 07 Apr 2022 at 08:28am +08, Po Lu wrote: > Sean Whitton writes: > >> Nice idea to avoid referring users to a bug report that doesn't apply to >> pgtk. But is there truly "no way to fix this problem" in the pgtk case >> too? Is it really that fundamental to the design of GTK3? > > Yes, 100%. GDK just calls `_exit' on an IO error. You cannot even run > an atexit handler. > > And since we don't have control over Xlib when built with PGTK, there's > no way to run code before GDK's own IO error handler either. Thanks. I'd like to install the attached patch to preempt questions like mine; any objections? I still have some stuff in my init.el based on the hope that this could be fixed; I'll probably remove it now :( -- Sean Whitton --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-src-emacs.c-main-Say-that-the-problem-is-fundamental.patch >From adecae1728630541286b4a83406e3c863e0c8f4c Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 6 Apr 2022 17:45:55 -0700 Subject: [PATCH] ; * src/emacs.c (main): Say that the problem is fundamental to GTK. --- src/emacs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emacs.c b/src/emacs.c index acb409fcb7..79f4f54f6f 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1744,8 +1744,8 @@ main (int argc, char **argv) #ifdef HAVE_PGTK fputs ("Due to a limitation in GTK 3, Emacs built with PGTK will simply exit when a" "display connection is closed." - "\nThere is no way to fix this problem, so if you want to use Emacs on Wayland" - "on multiple displays and have Emacs survive disconnects, you lose.", + "\nThe limitation is fundamental to GTK on Wayland, so Emacs on Wayland" + "with multiple displays is unlikely ever to be able to survive disconnections.", stderr); #elif defined USE_GTK fputs ("\nWarning: due to a long standing Gtk+ bug\nhttps://gitlab.gnome.org/GNOME/gtk/issues/221\n\ -- 2.30.2 --=-=-=--