Subject: Re: bug#36160: 25.2; Emacs does not ask to save modified files when shutting down OS

From: Glenn Morris <[email-masked]>
Date: Thu, 13 Jun 2019 13:36:21 -0400

Lars Ingebrigtsen wrote:

> but it could, like, listen to dbus messages about being shut down and
> try to autosave some buffers, for instance... Perhaps?

Shutdown sends SIGTERM, so Emacs could (auto)save on receipt of that
signal (if it doesn't already do so?).