Subject: bug#7837: 23.2.91; Logging out is confusing if Emacs has background processes running

From: Reuben Thomas <[email-masked]>
Date: Tue, 1 Oct 2019 21:59:04 +0100

On Tue, 1 Oct 2019 at 21:55, Lars Ingebrigtsen <[email-masked]> 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?
>

https://www.x.org/releases/X11R7.7/doc/libSM/xsmp.html

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

-- 
https://rrt.sc3d.org