On Tue, 1 Oct 2019 at 21:55, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> What is missing, therefore, is for Emacs to act as if I 19ve tried to quit
> it when it is signalled by the X session manager. (This is what other
> apps do: they immediately bring up the  1cYou have unsaved documents 1d
> dialog, or equivalent.)

How does the window manager communicate to the apps that it's closing
down?  Is there a standard?


Emacs already implements this: see src/xsmfns.c. The problem is its behaviour when there are background processes.

--
https://rrt.sc3d.org