From: Sean Whitton <spwhitton@spwhitton.name>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
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 [thread overview]
Message-ID: <87y20hhg5b.fsf@athena.silentflame.com> (raw)
In-Reply-To: <87ilrlzqgu.fsf@yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
Hello,
On Thu 07 Apr 2022 at 08:28am +08, Po Lu wrote:
> Sean Whitton <spwhitton@spwhitton.name> 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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-src-emacs.c-main-Say-that-the-problem-is-fundamental.patch --]
[-- Type: text/x-diff, Size: 1119 bytes --]
From adecae1728630541286b4a83406e3c863e0c8f4c Mon Sep 17 00:00:00 2001
From: Sean Whitton <spwhitton@spwhitton.name>
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
next prev parent reply other threads:[~2022-04-07 0:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <164921225790.11115.15669298143254852205@vcs2.savannah.gnu.org>
[not found] ` <20220406023058.315C7C009A8@vcs2.savannah.gnu.org>
2022-04-06 15:37 ` master f0ff20be51: * src/emacs.c (main): Improve accuracy of daemon warning message on PGTK Sean Whitton
2022-04-06 15:44 ` Robert Pluim
2022-04-06 18:45 ` Sean Whitton
2022-04-06 20:12 ` Óscar Fuentes
2022-04-07 0:32 ` Po Lu
2022-04-07 0:28 ` Po Lu
2022-04-07 0:49 ` Sean Whitton [this message]
2022-04-07 1:02 ` Po Lu
2022-04-07 2:11 ` Stefan Monnier
2022-04-07 2:45 ` Po Lu
2022-04-07 3:16 ` Stefan Monnier
2022-04-07 5:32 ` Sean Whitton
2022-04-07 23:04 ` Stefan Monnier
2022-04-08 4:09 ` Sean Whitton
2022-04-08 5:29 ` Sean Whitton
2022-04-08 6:13 ` Eli Zaretskii
2022-04-08 14:06 ` Sean Whitton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y20hhg5b.fsf@athena.silentflame.com \
--to=spwhitton@spwhitton.name \
--cc=emacs-devel@gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).