|
From: | Stefan Monnier |
Subject: | Re: master f0ff20be51: * src/emacs.c (main): Improve accuracy of daemon warning message on PGTK. |
Date: | Wed, 06 Apr 2022 22:11:17 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>>> 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 :( FWIW, I think "fundamental" is a bit strong here. I don't see any evidence that the design of the API makes it impossible. It seems more like a problem with the current implementation or a problem fixable with the addition of a couple new functions/hooks in the API. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |