all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Sean Whitton <spwhitton@spwhitton.name>
Cc: Po Lu <luangruo@yahoo.com>,  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 22:11:17 -0400	[thread overview]
Message-ID: <jwvy20h7ih2.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87y20hhg5b.fsf@athena.silentflame.com> (Sean Whitton's message of "Wed, 06 Apr 2022 17:49:04 -0700")

>>> 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




  parent reply	other threads:[~2022-04-07  2:11 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
2022-04-07  1:02         ` Po Lu
2022-04-07  2:11         ` Stefan Monnier [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvy20h7ih2.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=spwhitton@spwhitton.name \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.